Description* refactored startSES.js to separate wrapping from compilation, enabling other ways to recombine them, like script injection (see below).
* compileExprLater.js -- Implemented a compileExprLater abstraction, which is like cajaVM.compileExpr, except that it returns a promise which
eventually becomes the compiled expr function. This abstraction enables future interoperation with ES5/3, where server-side translation
requires an asynchrony barrier. The compileExprLater, if it finds itself in a browser environment, uses script injection rather than "eval",
avoiding yet more stratification bugs in Chrome's debugger.
* refactored explicit.html to use compileExprLater, to load makeSimpleAMDLoader outside the SES TCB. It is therefore now also multiply
instantiable and debuggable.
* refactored makeSimpleAMDLoader.js to make use of compileExprLater to load AMD modules, making them also debuggable under the
Chrome debugger.
* repairES5.js and startSES.js -- The big additional feature in this CL is to "support override by assignment in SES", enabling SES to accept
far more legacy best practice JS code.
* repairES5.js -- More repairs
* debug.js -- A start on being able to report stack traces for errors while still denying untrusted code access to these errors, all without
translation. All platforms should be safe, but the stack capture works only on Chrome.
* refactored startSES.js so all freezing of primordials is gathered together, as a step toward supporting confined SES (sacrificing
defensiveness in exchange for greater legacy compatibility).
Patch Set 1 #Patch Set 2 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 3 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 4 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 5 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 6 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 7 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 8 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 9 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #
Total comments: 5
Patch Set 10 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 11 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 12 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #Patch Set 13 : Inject into script tag, rather than eval, to be more debuggable under Chrome. #MessagesTotal messages: 2
|