Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[es5] Results are not shown #2

Closed
t2ym opened this issue Nov 1, 2020 · 2 comments
Closed

[es5] Results are not shown #2

t2ym opened this issue Nov 1, 2020 · 2 comments

Comments

@t2ym
Copy link
Owner

t2ym commented Nov 1, 2020

[es5] Results are not shown

Root Cause

Error Message

[errorReportService] /errorReport.json {
  "context":"/es5/,script@533396",
  "error":"Error",
  "message":"Permission Denied: Cannot access ",
  "name":"typeof:undefined",
  "isStatic":true,
  "isObject":false,
  "property":"length",
  "opType":"W"
}

Fix

Workaround (obsoleted)

  • Comment out Object.prototype.length = 42 and delete Object.prototype.length
diff --git a/docs/es5/index.html b/docs/es5/index.html
index 7ca2275..356a4fa 100644
--- a/docs/es5/index.html
+++ b/docs/es5/index.html
@@ -7226,7 +7226,7 @@ for (var i in Function) {
 }
 delete Object.prototype.length;
 return result;
-    ">test(function(){try{var asyncTestPassed=global.__asyncPassedFn && __asyncPassedFn("54");try{return Function("asyncTestPassed","\nvar result = true;\nObject.prototype.length = 42;\nfor (var i in Function) {\n    if (i === 'length') {\n        result = false;\n    }\n}\ndelete Object.prototype.length;\nreturn result;\n    ")(asyncTestPassed)}catch(e){asyncTestPassed=global.__strictAsyncPassedFn && __strictAsyncPassedFn("54");return Function("asyncTestPassed","'use strict';"+"\nvar result = true;\nObject.prototype.length = 42;\nfor (var i in Function) {\n    if (i === 'length') {\n        result = false;\n    }\n}\ndelete Object.prototype.length;\nreturn result;\n    ")(asyncTestPassed)&&"Strict"}}catch(e){return false;}}());
+    ">test(function(){try{var asyncTestPassed=global.__asyncPassedFn && __asyncPassedFn("54");try{return Function("asyncTestPassed","\nvar result = false;\n/*Object.prototype.length = 42;*/\nfor (var i in Function) {\n    if (i === 'length') {\n        result = false;\n    }\n}\n/*delete Object.prototype.length;*/\nreturn result;\n    ")(asyncTestPassed)}catch(e){asyncTestPassed=global.__strictAsyncPassedFn && __strictAsyncPassedFn("54");return Function("asyncTestPassed","'use strict';"+"\nvar result = true;\nObject.prototype.length = 42;\nfor (var i in Function) {\n    if (i === 'length') {\n        result = false;\n    }\n}\ndelete Object.prototype.length;\nreturn result;\n    ")(asyncTestPassed)&&"Strict"}}catch(e){return false;}}());
 </script></td>
 <td class="unknown" data-browser="es5shim">?</td>
 <td class="unknown obsolete" data-browser="konq4_13">?</td>
@t2ym
Copy link
Owner Author

t2ym commented Nov 2, 2020

Patched for GitHub Pages

@t2ym
Copy link
Owner Author

t2ym commented Nov 3, 2020

Fixed with thin-hook@0.4.0-alpha.45

@t2ym t2ym closed this as completed Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant