endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
829 stars 72 forks source link

feat(pass-style): Use endowed passStyleOf if at global symbol #1794

Closed erights closed 1 year ago

erights commented 1 year ago

Implement @gibson042 's suggestion at https://github.com/endojs/endo/pull/1676/files#r1264339663 as agreed in the thread starting at https://github.com/Agoric/agoric-sdk/pull/8051#issuecomment-1638454456

An advantage of using a symbol-named property on the global instead of a string-named property is that it is not aliased to a global variable name.