On Fri, Jan 6, 2012 at 10:02 AM, Andrea Giammarchi < andrea.giammar...@gmail.com> wrote: [...]
> 1. everyone can WeakMap = function () {}; anywhere >>> >> >> Again, no they can't because all whitelisted global variables are >> unassignable. >> >> > it's a var WeakMap in the global scope ... still talking about your shim, > probably I am missing some dependency? > It's easy to miss. "WeakMap" appears as a whitelisted global at http://code.google.com/p/es-lab/source/browse/trunk/src/ses/whitelist.js#146 At http://code.google.com/p/es-lab/source/browse/trunk/src/ses/startSES.js#1062we place all these whitelisted globals on the sharedImports object as well as redefine the property as non-writable non-configurable on the global object. At http://code.google.com/p/es-lab/source/browse/trunk/src/ses/startSES.js#1294we freeze sharedImports and all objects reachable from it by transitive prototype and reflective property traversal. -- Cheers, --MarkM
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss