DescriptionTaking over from erights CL
* 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).
@4779
Patch Set 1 #Patch Set 2 : AMDLoader in SES and other SES refactoring #
Total comments: 15
Patch Set 3 : AMDLoader in SES and other SES refactoring #Patch Set 4 : AMDLoader in SES and other SES refactoring #
Total comments: 2
Patch Set 5 : AMDLoader in SES and other SES refactoring #MessagesTotal messages: 6
|