├── .babelrc ├── .eslintrc ├── .esmrc ├── .gitignore ├── .nycrc ├── .prettierrc ├── .travis.yml ├── LICENSE ├── LICENSE-aura ├── LICENSE-caja ├── LICENSE-corejs ├── LICENSE-v8 ├── NEWS.md ├── NOTICE ├── README.md ├── SECURITY.md ├── examples ├── simple.html └── simple.js ├── package.json ├── rollup.config.js ├── scripts └── npm-audit-fix.sh ├── src ├── callAndWrapError.js ├── childRealm.js ├── commons.js ├── evaluators.js ├── main.js ├── optimizer.js ├── realm.js ├── repair │ ├── accessors.js │ └── functions.js ├── safeEval.js ├── safeFunction.js ├── scan.js ├── scopeHandler.js ├── sourceParser.js ├── stdlib.js ├── transforms.js ├── unsafeRec.js └── utilities.js ├── test-integration ├── realm.cjs.test.js ├── realm.esm-min.test.js ├── realm.esm.test.js ├── realm.umd-min.test.js └── realm.umd.test.js └── test ├── module ├── accessors.js ├── childRealm.js ├── evaluators.js ├── functions.js ├── optimizer.js ├── realm.js ├── scopeHandler.js ├── stdlib.js ├── unsafeRec.js └── utilities.js ├── realm ├── function-eval.js ├── identity-compartment.js ├── identity-single.js ├── leak-error-2.js ├── leak-error.js ├── leak-reflect-construct.js ├── leak-transtorms.js ├── leak-unsafe-eval.js ├── mutable.js ├── test-confinement.js ├── test-direct-eval.js ├── test-endowments.js ├── test-html-comment.js ├── test-import-expression.js ├── test-repair.js ├── test-set-global.js ├── test-shims.js ├── test-tostring.js └── test-typeof.js └── test262 ├── annexB └── built-ins │ └── Object │ └── prototype │ ├── __defineGetter__ │ ├── __defineSetter__ │ ├── __lookupGetter__ │ └── __lookupSetter__ ├── built-ins └── Array │ ├── from │ └── proto-from-ctor-realm.js │ ├── length │ └── define-own-prop-length-overflow-realm.js │ ├── of │ └── proto-from-ctor-realm.js │ ├── proto-from-ctor-realm.js │ └── prototype │ ├── concat │ ├── create-proto-from-ctor-realm-array.js │ └── create-proto-from-ctor-realm-non-array.js │ ├── filter │ └── create-proto-from-ctor-realm-non-array.js │ ├── map │ └── create-proto-from-ctor-realm-non-array.js │ ├── slice │ └── create-proto-from-ctor-realm-non-array.js │ └── splice │ └── create-proto-from-ctor-realm-non-array.js └── language └── eval-code └── indirect └── realm.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["env"] 3 | } -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/.eslintrc -------------------------------------------------------------------------------- /.esmrc: -------------------------------------------------------------------------------- 1 | { 2 | "cache": false 3 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/.gitignore -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/.nycrc -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/LICENSE -------------------------------------------------------------------------------- /LICENSE-aura: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/LICENSE-aura -------------------------------------------------------------------------------- /LICENSE-caja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/LICENSE-caja -------------------------------------------------------------------------------- /LICENSE-corejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/LICENSE-corejs -------------------------------------------------------------------------------- /LICENSE-v8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/LICENSE-v8 -------------------------------------------------------------------------------- /NEWS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/NEWS.md -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/NOTICE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/SECURITY.md -------------------------------------------------------------------------------- /examples/simple.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/examples/simple.html -------------------------------------------------------------------------------- /examples/simple.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/examples/simple.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/rollup.config.js -------------------------------------------------------------------------------- /scripts/npm-audit-fix.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/scripts/npm-audit-fix.sh -------------------------------------------------------------------------------- /src/callAndWrapError.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/callAndWrapError.js -------------------------------------------------------------------------------- /src/childRealm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/childRealm.js -------------------------------------------------------------------------------- /src/commons.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/commons.js -------------------------------------------------------------------------------- /src/evaluators.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/evaluators.js -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | export { default } from './realm'; 2 | -------------------------------------------------------------------------------- /src/optimizer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/optimizer.js -------------------------------------------------------------------------------- /src/realm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/realm.js -------------------------------------------------------------------------------- /src/repair/accessors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/repair/accessors.js -------------------------------------------------------------------------------- /src/repair/functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/repair/functions.js -------------------------------------------------------------------------------- /src/safeEval.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/safeEval.js -------------------------------------------------------------------------------- /src/safeFunction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/safeFunction.js -------------------------------------------------------------------------------- /src/scan.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/scan.js -------------------------------------------------------------------------------- /src/scopeHandler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/scopeHandler.js -------------------------------------------------------------------------------- /src/sourceParser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/sourceParser.js -------------------------------------------------------------------------------- /src/stdlib.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/stdlib.js -------------------------------------------------------------------------------- /src/transforms.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/transforms.js -------------------------------------------------------------------------------- /src/unsafeRec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/unsafeRec.js -------------------------------------------------------------------------------- /src/utilities.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/src/utilities.js -------------------------------------------------------------------------------- /test-integration/realm.cjs.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test-integration/realm.cjs.test.js -------------------------------------------------------------------------------- /test-integration/realm.esm-min.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test-integration/realm.esm-min.test.js -------------------------------------------------------------------------------- /test-integration/realm.esm.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test-integration/realm.esm.test.js -------------------------------------------------------------------------------- /test-integration/realm.umd-min.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test-integration/realm.umd-min.test.js -------------------------------------------------------------------------------- /test-integration/realm.umd.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test-integration/realm.umd.test.js -------------------------------------------------------------------------------- /test/module/accessors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/accessors.js -------------------------------------------------------------------------------- /test/module/childRealm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/childRealm.js -------------------------------------------------------------------------------- /test/module/evaluators.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/evaluators.js -------------------------------------------------------------------------------- /test/module/functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/functions.js -------------------------------------------------------------------------------- /test/module/optimizer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/optimizer.js -------------------------------------------------------------------------------- /test/module/realm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/realm.js -------------------------------------------------------------------------------- /test/module/scopeHandler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/scopeHandler.js -------------------------------------------------------------------------------- /test/module/stdlib.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/stdlib.js -------------------------------------------------------------------------------- /test/module/unsafeRec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/unsafeRec.js -------------------------------------------------------------------------------- /test/module/utilities.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/module/utilities.js -------------------------------------------------------------------------------- /test/realm/function-eval.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/function-eval.js -------------------------------------------------------------------------------- /test/realm/identity-compartment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/identity-compartment.js -------------------------------------------------------------------------------- /test/realm/identity-single.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/identity-single.js -------------------------------------------------------------------------------- /test/realm/leak-error-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/leak-error-2.js -------------------------------------------------------------------------------- /test/realm/leak-error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/leak-error.js -------------------------------------------------------------------------------- /test/realm/leak-reflect-construct.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/leak-reflect-construct.js -------------------------------------------------------------------------------- /test/realm/leak-transtorms.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/leak-transtorms.js -------------------------------------------------------------------------------- /test/realm/leak-unsafe-eval.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/leak-unsafe-eval.js -------------------------------------------------------------------------------- /test/realm/mutable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/mutable.js -------------------------------------------------------------------------------- /test/realm/test-confinement.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-confinement.js -------------------------------------------------------------------------------- /test/realm/test-direct-eval.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-direct-eval.js -------------------------------------------------------------------------------- /test/realm/test-endowments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-endowments.js -------------------------------------------------------------------------------- /test/realm/test-html-comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-html-comment.js -------------------------------------------------------------------------------- /test/realm/test-import-expression.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-import-expression.js -------------------------------------------------------------------------------- /test/realm/test-repair.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-repair.js -------------------------------------------------------------------------------- /test/realm/test-set-global.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-set-global.js -------------------------------------------------------------------------------- /test/realm/test-shims.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-shims.js -------------------------------------------------------------------------------- /test/realm/test-tostring.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-tostring.js -------------------------------------------------------------------------------- /test/realm/test-typeof.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/realm/test-typeof.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__defineGetter__/define-new.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__defineGetter__/define-new.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__defineGetter__/define-non-configurable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__defineGetter__/define-non-configurable.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__defineGetter__/getter-non-callable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__defineGetter__/getter-non-callable.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__defineGetter__/this-non-obj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__defineGetter__/this-non-obj.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__defineSetter__/define-new.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__defineSetter__/define-new.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__defineSetter__/define-non-configurable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__defineSetter__/define-non-configurable.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__defineSetter__/setter-non-callable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__defineSetter__/setter-non-callable.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__defineSetter__/this-non-obj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__defineSetter__/this-non-obj.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__lookupGetter__/lookup-own-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__lookupGetter__/lookup-own-data.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__lookupGetter__/lookup-proto-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__lookupGetter__/lookup-proto-data.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__lookupGetter__/this-non-obj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__lookupGetter__/this-non-obj.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__lookupSetter__/lookup-own-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__lookupSetter__/lookup-own-data.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__lookupSetter__/lookup-proto-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__lookupSetter__/lookup-proto-data.js -------------------------------------------------------------------------------- /test/test262/annexB/built-ins/Object/prototype/__lookupSetter__/this-non-obj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/annexB/built-ins/Object/prototype/__lookupSetter__/this-non-obj.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/from/proto-from-ctor-realm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/from/proto-from-ctor-realm.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/length/define-own-prop-length-overflow-realm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/length/define-own-prop-length-overflow-realm.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/of/proto-from-ctor-realm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/of/proto-from-ctor-realm.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/proto-from-ctor-realm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/proto-from-ctor-realm.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-array.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-non-array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-non-array.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-non-array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-non-array.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/prototype/map/create-proto-from-ctor-realm-non-array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/prototype/map/create-proto-from-ctor-realm-non-array.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-non-array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-non-array.js -------------------------------------------------------------------------------- /test/test262/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-non-array.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-non-array.js -------------------------------------------------------------------------------- /test/test262/language/eval-code/indirect/realm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Agoric/realms-shim/HEAD/test/test262/language/eval-code/indirect/realm.js --------------------------------------------------------------------------------