http://codereview.appspot.com/4535118/diff/21003/src/com/google/caja/es5-guards.js
File src/com/google/caja/es5-guards.js (right):

http://codereview.appspot.com/4535118/diff/21003/src/com/google/caja/es5-guards.js#newcode30
src/com/google/caja/es5-guards.js:30: // SES.
On 2011/07/06 20:48:27, MikeSamuel wrote:
Mike Stay, can you comment on this?

To have read-only globals in ES53 from within host code, you say
something like

IMPORTS___.DefineOwnProperty___('myGlobal', { value: 1 });

To do it from within guest code, you say

Object.defineProperty(this, 'myGlobal', { value: 1 });

at the global scope.  In both cases, I've left off the writable and
configurable flag so they default to false.

http://codereview.appspot.com/4535118/

Reply via email to