From fdd2fa9b1c2f64a2a376556af9f2cb3b90373937 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 1 Mar 2017 16:34:15 -0500 Subject: [PATCH] Rename $ => $262. Fixes gh-802 (#823) Signed-off-by: Rick Waldron --- INTERPRETING.md | 5 ++--- harness/detachArrayBuffer.js | 4 ++-- .../define-own-prop-length-overflow-realm.js | 2 +- .../Array/from/proto-from-ctor-realm.js | 2 +- test/built-ins/Array/of/proto-from-ctor-realm.js | 2 +- test/built-ins/Array/proto-from-ctor-realm.js | 2 +- .../concat/create-proto-from-ctor-realm-array.js | 2 +- .../create-proto-from-ctor-realm-non-array.js | 2 +- .../filter/create-proto-from-ctor-realm-array.js | 2 +- .../create-proto-from-ctor-realm-non-array.js | 2 +- .../map/create-proto-from-ctor-realm-array.js | 2 +- .../create-proto-from-ctor-realm-non-array.js | 2 +- .../slice/create-proto-from-ctor-realm-array.js | 2 +- .../create-proto-from-ctor-realm-non-array.js | 2 +- .../splice/create-proto-from-ctor-realm-array.js | 2 +- .../create-proto-from-ctor-realm-non-array.js | 2 +- .../ArrayBuffer/proto-from-ctor-realm.js | 2 +- .../next/detach-typedarray-in-progress.js | 2 +- test/built-ins/Boolean/proto-from-ctor-realm.js | 2 +- test/built-ins/DataView/proto-from-ctor-realm.js | 2 +- test/built-ins/Date/proto-from-ctor-realm-one.js | 2 +- test/built-ins/Date/proto-from-ctor-realm-two.js | 2 +- .../built-ins/Date/proto-from-ctor-realm-zero.js | 2 +- test/built-ins/Error/proto-from-ctor-realm.js | 2 +- .../Function/call-bind-this-realm-undef.js | 2 +- .../Function/call-bind-this-realm-value.js | 2 +- .../Function/internals/Call/class-ctor-realm.js | 2 +- .../Construct/base-ctor-revoked-proxy-realm.js | 2 +- .../Construct/derived-return-val-realm.js | 2 +- .../derived-this-uninitialized-realm.js | 2 +- test/built-ins/Function/proto-from-ctor-realm.js | 2 +- .../Function/prototype/bind/get-fn-realm.js | 2 +- .../prototype/bind/proto-from-ctor-realm.js | 2 +- .../GeneratorFunction/proto-from-ctor-realm.js | 2 +- test/built-ins/Map/proto-from-ctor-realm.js | 2 +- test/built-ins/Number/proto-from-ctor-realm.js | 2 +- test/built-ins/Object/proto-from-ctor.js | 2 +- test/built-ins/Promise/proto-from-ctor-realm.js | 2 +- test/built-ins/Proxy/apply/arguments-realm.js | 2 +- .../Proxy/apply/trap-is-not-callable-realm.js | 2 +- .../built-ins/Proxy/construct/arguments-realm.js | 2 +- .../construct/trap-is-not-callable-realm.js | 2 +- .../trap-is-undefined-proto-from-ctor-realm.js | 2 +- .../built-ins/Proxy/defineProperty/desc-realm.js | 2 +- .../Proxy/defineProperty/null-handler-realm.js | 2 +- ...c-configurable-desc-not-configurable-realm.js | 2 +- ...e-descriptor-not-configurable-target-realm.js | 2 +- ...targetdesc-not-compatible-descriptor-realm.js | 2 +- ...ndefined-not-configurable-descriptor-realm.js | 2 +- ...c-undefined-target-is-not-extensible-realm.js | 2 +- .../defineProperty/trap-is-not-callable-realm.js | 2 +- .../deleteProperty/trap-is-not-callable-realm.js | 2 +- test/built-ins/Proxy/get-fn-realm.js | 2 +- .../Proxy/get/trap-is-not-callable-realm.js | 2 +- ...ult-type-is-not-object-nor-undefined-realm.js | 2 +- .../trap-is-not-callable-realm.js | 2 +- .../getPrototypeOf/trap-is-not-callable-realm.js | 2 +- .../Proxy/has/trap-is-not-callable-realm.js | 2 +- .../isExtensible/trap-is-not-callable-realm.js | 2 +- .../return-not-list-object-throws-realm.js | 2 +- .../Proxy/ownKeys/trap-is-not-callable-realm.js | 2 +- .../trap-is-not-callable-realm.js | 2 +- .../Proxy/set/trap-is-not-callable-realm.js | 2 +- .../setPrototypeOf/trap-is-not-callable-realm.js | 2 +- test/built-ins/RegExp/proto-from-ctor-realm.js | 2 +- .../splitter-proto-from-ctor-realm.js | 2 +- test/built-ins/Set/proto-from-ctor-realm.js | 2 +- test/built-ins/String/proto-from-ctor-realm.js | 2 +- test/built-ins/Symbol/for/cross-realm.js | 2 +- test/built-ins/Symbol/hasInstance/cross-realm.js | 2 +- .../Symbol/isConcatSpreadable/cross-realm.js | 2 +- test/built-ins/Symbol/iterator/cross-realm.js | 2 +- test/built-ins/Symbol/keyFor/cross-realm.js | 2 +- test/built-ins/Symbol/match/cross-realm.js | 2 +- test/built-ins/Symbol/replace/cross-realm.js | 2 +- test/built-ins/Symbol/search/cross-realm.js | 2 +- test/built-ins/Symbol/species/cross-realm.js | 2 +- test/built-ins/Symbol/split/cross-realm.js | 2 +- test/built-ins/Symbol/toPrimitive/cross-realm.js | 2 +- test/built-ins/Symbol/toStringTag/cross-realm.js | 2 +- test/built-ins/Symbol/unscopables/cross-realm.js | 2 +- .../ThrowTypeError/distinct-cross-realm.js | 2 +- .../buffer-arg-proto-from-ctor-realm.js | 2 +- .../DefineOwnProperty/detached-buffer-realm.js | 2 +- .../internals/Get/detached-buffer-realm.js | 2 +- .../GetOwnProperty/detached-buffer-realm.js | 2 +- .../HasProperty/detached-buffer-realm.js | 2 +- .../internals/Set/detached-buffer-realm.js | 2 +- .../length-arg-proto-from-ctor-realm.js | 2 +- .../TypedArrays/no-args-proto-from-ctor-realm.js | 2 +- .../object-arg-proto-from-ctor-realm.js | 2 +- ...-ctor-custom-species-proto-from-ctor-realm.js | 2 +- .../typedarray-arg-proto-from-ctor-realm.js | 2 +- ...-ctor-species-custom-proto-from-ctor-realm.js | 2 +- test/built-ins/WeakMap/proto-from-ctor-realm.js | 2 +- test/built-ins/WeakSet/proto-from-ctor-realm.js | 2 +- test/language/eval-code/indirect/realm.js | 2 +- .../expressions/call/eval-realm-indirect.js | 2 +- .../generators/eval-body-proto-realm.js | 2 +- .../expressions/new/non-ctor-err-realm.js | 2 +- test/language/expressions/super/realm.js | 2 +- .../expressions/tagged-template/cache-realm.js | 2 +- .../global-code/script-decl-func-dups.js | 2 +- .../script-decl-func-err-non-configurable.js | 10 +++++----- .../script-decl-func-err-non-extensible.js | 2 +- test/language/global-code/script-decl-func.js | 6 +++--- .../global-code/script-decl-lex-deletion.js | 6 +++--- test/language/global-code/script-decl-lex-lex.js | 6 +++--- .../script-decl-lex-restricted-global.js | 4 ++-- test/language/global-code/script-decl-lex-var.js | 4 ++-- test/language/global-code/script-decl-lex.js | 6 +++--- .../global-code/script-decl-var-collision.js | 16 ++++++++-------- test/language/global-code/script-decl-var-err.js | 2 +- test/language/global-code/script-decl-var.js | 6 +++--- .../get-value-prop-base-primitive-realm.js | 2 +- .../put-value-prop-base-primitive-realm.js | 2 +- 116 files changed, 141 insertions(+), 142 deletions(-) diff --git a/INTERPRETING.md b/INTERPRETING.md index d4c2900a0c..af5409531a 100644 --- a/INTERPRETING.md +++ b/INTERPRETING.md @@ -34,7 +34,7 @@ properties of the global scope prior to test execution. - **`print`** A function that exposes the string value of its first argument to the test runner. This is used as a communication mechanism for asynchronous tests (via the `async` flag, described below). -- **`$`** An ordinary object with the following properties: +- **`$262`** An ordinary object with the following properties: - **`createRealm`** - a function which creates a new [ECMAScript Realm](https://tc39.github.io/ecma262/2016/#sec-code-realms), defines this API on the new realm's global object, and returns the `$` @@ -58,8 +58,7 @@ properties of the global scope prior to test execution. 5. Let status be ScriptEvaluation(s). 6. Return Completion(status). - - **`global`** - a reference to the global object on which `$` was initially - defined + - **`global`** - a reference to the global object on which `$262` was initially defined - **`agent`** - an ordinary object with the following properties: - **`start`** - a function that takes a script source string and runs the script in a concurrent agent. Will block until that agent is diff --git a/harness/detachArrayBuffer.js b/harness/detachArrayBuffer.js index de8ac123d6..6e9982e997 100644 --- a/harness/detachArrayBuffer.js +++ b/harness/detachArrayBuffer.js @@ -1,6 +1,6 @@ function $DETACHBUFFER(buffer) { - if (!$ || typeof $.detachArrayBuffer !== "function") { + if (!$262 || typeof $262.detachArrayBuffer !== "function") { throw new Test262Error("No method available to detach an ArrayBuffer"); } - $.detachArrayBuffer(buffer); + $262.detachArrayBuffer(buffer); } diff --git a/test/built-ins/Array/define-own-prop-length-overflow-realm.js b/test/built-ins/Array/define-own-prop-length-overflow-realm.js index 9ddd3b7857..5510bcd6b0 100644 --- a/test/built-ins/Array/define-own-prop-length-overflow-realm.js +++ b/test/built-ins/Array/define-own-prop-length-overflow-realm.js @@ -12,7 +12,7 @@ info: | a. Return ? ArraySetLength(A, Desc). ---*/ -var OArray = $.createRealm().global.Array; +var OArray = $262.createRealm().global.Array; var array = new OArray(); assert.throws(RangeError, function() { diff --git a/test/built-ins/Array/from/proto-from-ctor-realm.js b/test/built-ins/Array/from/proto-from-ctor-realm.js index ae5e3800ce..20915985cc 100644 --- a/test/built-ins/Array/from/proto-from-ctor-realm.js +++ b/test/built-ins/Array/from/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | [...] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Array/of/proto-from-ctor-realm.js b/test/built-ins/Array/of/proto-from-ctor-realm.js index 39ac89ade9..09eb4a0b1c 100644 --- a/test/built-ins/Array/of/proto-from-ctor-realm.js +++ b/test/built-ins/Array/of/proto-from-ctor-realm.js @@ -20,7 +20,7 @@ info: | [...] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Array/proto-from-ctor-realm.js b/test/built-ins/Array/proto-from-ctor-realm.js index ef206de6ec..8549b3c0cb 100644 --- a/test/built-ins/Array/proto-from-ctor-realm.js +++ b/test/built-ins/Array/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-array.js b/test/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-array.js index 19a1290e77..f2a4ceec52 100644 --- a/test/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-array.js +++ b/test/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-array.js @@ -24,7 +24,7 @@ info: | var array = []; var callCount = 0; -var OArray = $.createRealm().global.Array; +var OArray = $262.createRealm().global.Array; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-non-array.js b/test/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-non-array.js index 2dadf51e57..5101165ce0 100644 --- a/test/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-non-array.js +++ b/test/built-ins/Array/prototype/concat/create-proto-from-ctor-realm-non-array.js @@ -25,7 +25,7 @@ info: | var array = []; var callCount = 0; var CustomCtor = function() {}; -var OObject = $.createRealm().global.Object; +var OObject = $262.createRealm().global.Object; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js b/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js index 8e57803e64..d654311982 100644 --- a/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js +++ b/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js @@ -25,7 +25,7 @@ info: | var array = []; var callCount = 0; -var OArray = $.createRealm().global.Array; +var OArray = $262.createRealm().global.Array; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-non-array.js b/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-non-array.js index b4c27c1086..5427c881b3 100644 --- a/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-non-array.js +++ b/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-non-array.js @@ -26,7 +26,7 @@ info: | var array = []; var callCount = 0; var CustomCtor = function() {}; -var OObject = $.createRealm().global.Object; +var OObject = $262.createRealm().global.Object; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/map/create-proto-from-ctor-realm-array.js b/test/built-ins/Array/prototype/map/create-proto-from-ctor-realm-array.js index ede9df6ba6..709111905f 100644 --- a/test/built-ins/Array/prototype/map/create-proto-from-ctor-realm-array.js +++ b/test/built-ins/Array/prototype/map/create-proto-from-ctor-realm-array.js @@ -25,7 +25,7 @@ info: | var array = []; var callCount = 0; -var OArray = $.createRealm().global.Array; +var OArray = $262.createRealm().global.Array; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/map/create-proto-from-ctor-realm-non-array.js b/test/built-ins/Array/prototype/map/create-proto-from-ctor-realm-non-array.js index dc266037c7..d067699608 100644 --- a/test/built-ins/Array/prototype/map/create-proto-from-ctor-realm-non-array.js +++ b/test/built-ins/Array/prototype/map/create-proto-from-ctor-realm-non-array.js @@ -26,7 +26,7 @@ info: | var array = []; var callCount = 0; var CustomCtor = function() {}; -var OObject = $.createRealm().global.Object; +var OObject = $262.createRealm().global.Object; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-array.js b/test/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-array.js index 6b91b72a0f..a18e5a29fd 100644 --- a/test/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-array.js +++ b/test/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-array.js @@ -25,7 +25,7 @@ info: | var array = []; var callCount = 0; -var OArray = $.createRealm().global.Array; +var OArray = $262.createRealm().global.Array; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-non-array.js b/test/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-non-array.js index 4a57e35461..39b89150aa 100644 --- a/test/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-non-array.js +++ b/test/built-ins/Array/prototype/slice/create-proto-from-ctor-realm-non-array.js @@ -26,7 +26,7 @@ info: | var array = []; var callCount = 0; var CustomCtor = function() {}; -var OObject = $.createRealm().global.Object; +var OObject = $262.createRealm().global.Object; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-array.js b/test/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-array.js index cce3c72549..ff39804ea6 100644 --- a/test/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-array.js +++ b/test/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-array.js @@ -25,7 +25,7 @@ info: | var array = []; var callCount = 0; -var OArray = $.createRealm().global.Array; +var OArray = $262.createRealm().global.Array; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-non-array.js b/test/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-non-array.js index e39afb789c..fea6a06ae9 100644 --- a/test/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-non-array.js +++ b/test/built-ins/Array/prototype/splice/create-proto-from-ctor-realm-non-array.js @@ -26,7 +26,7 @@ info: | var array = []; var callCount = 0; var CustomCtor = function() {}; -var OObject = $.createRealm().global.Object; +var OObject = $262.createRealm().global.Object; var speciesDesc = { get: function() { callCount += 1; diff --git a/test/built-ins/ArrayBuffer/proto-from-ctor-realm.js b/test/built-ins/ArrayBuffer/proto-from-ctor-realm.js index e4eda74466..4038c9b365 100644 --- a/test/built-ins/ArrayBuffer/proto-from-ctor-realm.js +++ b/test/built-ins/ArrayBuffer/proto-from-ctor-realm.js @@ -19,7 +19,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/ArrayIteratorPrototype/next/detach-typedarray-in-progress.js b/test/built-ins/ArrayIteratorPrototype/next/detach-typedarray-in-progress.js index 2f04de39f5..5f377283e4 100644 --- a/test/built-ins/ArrayIteratorPrototype/next/detach-typedarray-in-progress.js +++ b/test/built-ins/ArrayIteratorPrototype/next/detach-typedarray-in-progress.js @@ -17,7 +17,7 @@ testWithTypedArrayConstructors(TA => { var i = 0; assert.throws(TypeError, () => { for (let key of typedArray.keys()) { - $.detachArrayBuffer(typedArray.buffer); + $262.detachArrayBuffer(typedArray.buffer); i++; } }); diff --git a/test/built-ins/Boolean/proto-from-ctor-realm.js b/test/built-ins/Boolean/proto-from-ctor-realm.js index f5b5b383bc..f7ada674cd 100644 --- a/test/built-ins/Boolean/proto-from-ctor-realm.js +++ b/test/built-ins/Boolean/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/DataView/proto-from-ctor-realm.js b/test/built-ins/DataView/proto-from-ctor-realm.js index 3f20e18140..95d1b3db88 100644 --- a/test/built-ins/DataView/proto-from-ctor-realm.js +++ b/test/built-ins/DataView/proto-from-ctor-realm.js @@ -22,7 +22,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; var buffer = new ArrayBuffer(0); diff --git a/test/built-ins/Date/proto-from-ctor-realm-one.js b/test/built-ins/Date/proto-from-ctor-realm-one.js index 5a680374cb..d1200f6ad3 100644 --- a/test/built-ins/Date/proto-from-ctor-realm-one.js +++ b/test/built-ins/Date/proto-from-ctor-realm-one.js @@ -23,7 +23,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Date/proto-from-ctor-realm-two.js b/test/built-ins/Date/proto-from-ctor-realm-two.js index b53c0773b8..a04e27f8c4 100644 --- a/test/built-ins/Date/proto-from-ctor-realm-two.js +++ b/test/built-ins/Date/proto-from-ctor-realm-two.js @@ -23,7 +23,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Date/proto-from-ctor-realm-zero.js b/test/built-ins/Date/proto-from-ctor-realm-zero.js index bba87e1a57..c48161fa4c 100644 --- a/test/built-ins/Date/proto-from-ctor-realm-zero.js +++ b/test/built-ins/Date/proto-from-ctor-realm-zero.js @@ -22,7 +22,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Error/proto-from-ctor-realm.js b/test/built-ins/Error/proto-from-ctor-realm.js index ddb87e650a..d4d641fcb7 100644 --- a/test/built-ins/Error/proto-from-ctor-realm.js +++ b/test/built-ins/Error/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Function/call-bind-this-realm-undef.js b/test/built-ins/Function/call-bind-this-realm-undef.js index 4df0dc42d7..1df54747f5 100644 --- a/test/built-ins/Function/call-bind-this-realm-undef.js +++ b/test/built-ins/Function/call-bind-this-realm-undef.js @@ -21,7 +21,7 @@ info: > [...] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var func = new other.Function('return this;'); var subject; diff --git a/test/built-ins/Function/call-bind-this-realm-value.js b/test/built-ins/Function/call-bind-this-realm-value.js index cc1a668ca0..11aa62b744 100644 --- a/test/built-ins/Function/call-bind-this-realm-value.js +++ b/test/built-ins/Function/call-bind-this-realm-value.js @@ -22,7 +22,7 @@ info: > [...] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var func = new other.Function('return this;'); var subject; diff --git a/test/built-ins/Function/internals/Call/class-ctor-realm.js b/test/built-ins/Function/internals/Call/class-ctor-realm.js index e4e6095797..1433e5e425 100644 --- a/test/built-ins/Function/internals/Call/class-ctor-realm.js +++ b/test/built-ins/Function/internals/Call/class-ctor-realm.js @@ -13,7 +13,7 @@ info: | features: [class] ---*/ -var C = $.createRealm().global.eval('0, class {}'); +var C = $262.createRealm().global.eval('0, class {}'); assert.throws(TypeError, function() { C(); diff --git a/test/built-ins/Function/internals/Construct/base-ctor-revoked-proxy-realm.js b/test/built-ins/Function/internals/Construct/base-ctor-revoked-proxy-realm.js index a528644777..87bff8a5ec 100644 --- a/test/built-ins/Function/internals/Construct/base-ctor-revoked-proxy-realm.js +++ b/test/built-ins/Function/internals/Construct/base-ctor-revoked-proxy-realm.js @@ -40,7 +40,7 @@ info: | features: [Proxy] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; // Defer proxy revocation until after the `constructor` property has been // accessed var handlers = { diff --git a/test/built-ins/Function/internals/Construct/derived-return-val-realm.js b/test/built-ins/Function/internals/Construct/derived-return-val-realm.js index ff8d83d1c8..52e9c69e24 100644 --- a/test/built-ins/Function/internals/Construct/derived-return-val-realm.js +++ b/test/built-ins/Function/internals/Construct/derived-return-val-realm.js @@ -17,7 +17,7 @@ info: | features: [class] ---*/ -var C = $.createRealm().global.eval( +var C = $262.createRealm().global.eval( '0, class extends Object {' + ' constructor() {' + ' return null;' + diff --git a/test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js b/test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js index c051a457db..4c9484659b 100644 --- a/test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js +++ b/test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js @@ -18,7 +18,7 @@ info: | features: [class] ---*/ -var C = $.createRealm().global.eval( +var C = $262.createRealm().global.eval( '(class C extends Object {' + ' constructor() {}' + '});' diff --git a/test/built-ins/Function/proto-from-ctor-realm.js b/test/built-ins/Function/proto-from-ctor-realm.js index 61c396a3e9..1313568593 100644 --- a/test/built-ins/Function/proto-from-ctor-realm.js +++ b/test/built-ins/Function/proto-from-ctor-realm.js @@ -29,7 +29,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Function/prototype/bind/get-fn-realm.js b/test/built-ins/Function/prototype/bind/get-fn-realm.js index fda8693d87..40d1153906 100644 --- a/test/built-ins/Function/prototype/bind/get-fn-realm.js +++ b/test/built-ins/Function/prototype/bind/get-fn-realm.js @@ -15,7 +15,7 @@ info: | b. Return ? GetFunctionRealm(target). ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); var B = Function.prototype.bind.call(C); diff --git a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js index a7e9be2166..ed6b03795c 100644 --- a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js +++ b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js @@ -19,7 +19,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js b/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js index 7f7394ce39..5a485ef12d 100644 --- a/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js +++ b/test/built-ins/GeneratorFunction/proto-from-ctor-realm.js @@ -30,7 +30,7 @@ features: [Reflect] ---*/ var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor; -var other = $.createRealm().global; +var other = $262.createRealm().global; var OtherGeneratorFunction = Object.getPrototypeOf( other.eval('(0, function* () {})') ).constructor; diff --git a/test/built-ins/Map/proto-from-ctor-realm.js b/test/built-ins/Map/proto-from-ctor-realm.js index 2ce68b29ef..737408a32f 100644 --- a/test/built-ins/Map/proto-from-ctor-realm.js +++ b/test/built-ins/Map/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Number/proto-from-ctor-realm.js b/test/built-ins/Number/proto-from-ctor-realm.js index b80d89f9a7..dad5208bb3 100644 --- a/test/built-ins/Number/proto-from-ctor-realm.js +++ b/test/built-ins/Number/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Object/proto-from-ctor.js b/test/built-ins/Object/proto-from-ctor.js index 4d6da3ad89..70e8b29b99 100644 --- a/test/built-ins/Object/proto-from-ctor.js +++ b/test/built-ins/Object/proto-from-ctor.js @@ -19,7 +19,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Promise/proto-from-ctor-realm.js b/test/built-ins/Promise/proto-from-ctor-realm.js index 4af37b92f2..b7092136fe 100644 --- a/test/built-ins/Promise/proto-from-ctor-realm.js +++ b/test/built-ins/Promise/proto-from-ctor-realm.js @@ -23,7 +23,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Proxy/apply/arguments-realm.js b/test/built-ins/Proxy/apply/arguments-realm.js index f2f0ab28d6..b47d5966e4 100644 --- a/test/built-ins/Proxy/apply/arguments-realm.js +++ b/test/built-ins/Proxy/apply/arguments-realm.js @@ -11,7 +11,7 @@ info: | 8. Return ? Call(trap, handler, « target, thisArgument, argArray »). ---*/ -var f = $.createRealm().global.eval( +var f = $262.createRealm().global.eval( 'new Proxy(function() {}, { apply: function(_, __, args) { return args; } })' ); diff --git a/test/built-ins/Proxy/apply/trap-is-not-callable-realm.js b/test/built-ins/Proxy/apply/trap-is-not-callable-realm.js index 0b4ff7258c..a88845b4d5 100644 --- a/test/built-ins/Proxy/apply/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/apply/trap-is-not-callable-realm.js @@ -8,7 +8,7 @@ description: > context) ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy(function() {}, { apply: {} }); diff --git a/test/built-ins/Proxy/construct/arguments-realm.js b/test/built-ins/Proxy/construct/arguments-realm.js index b524b62135..fe22d9c8a0 100644 --- a/test/built-ins/Proxy/construct/arguments-realm.js +++ b/test/built-ins/Proxy/construct/arguments-realm.js @@ -12,7 +12,7 @@ info: | [...] ---*/ -var C = $.createRealm().global.eval( +var C = $262.createRealm().global.eval( 'new Proxy(function() {}, { construct: function(_, args) { return args; } })' ); diff --git a/test/built-ins/Proxy/construct/trap-is-not-callable-realm.js b/test/built-ins/Proxy/construct/trap-is-not-callable-realm.js index 3d73e03e49..c556ce2ea9 100644 --- a/test/built-ins/Proxy/construct/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/construct/trap-is-not-callable-realm.js @@ -8,7 +8,7 @@ description: > context) ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy(function() {}, { construct: {} }); diff --git a/test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js b/test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js index d285aff719..3fbd4af5b4 100644 --- a/test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js +++ b/test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js @@ -23,7 +23,7 @@ info: > features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Proxy/defineProperty/desc-realm.js b/test/built-ins/Proxy/defineProperty/desc-realm.js index a675b3a7b7..7bee5d9af3 100644 --- a/test/built-ins/Proxy/defineProperty/desc-realm.js +++ b/test/built-ins/Proxy/defineProperty/desc-realm.js @@ -23,7 +23,7 @@ info: | 11. Return obj. ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var desc; var p = new OProxy({}, { defineProperty: function(_, __, _desc) { diff --git a/test/built-ins/Proxy/defineProperty/null-handler-realm.js b/test/built-ins/Proxy/defineProperty/null-handler-realm.js index 303be843a8..22039b300c 100644 --- a/test/built-ins/Proxy/defineProperty/null-handler-realm.js +++ b/test/built-ins/Proxy/defineProperty/null-handler-realm.js @@ -12,7 +12,7 @@ info: | 3. If handler is null, throw a TypeError exception. ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = OProxy.revocable(Object.create(null), {}); p.revoke(); diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js index 061343d2e2..747158e43f 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js @@ -17,7 +17,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var target = Object.create(null); var p = new OProxy(target, { defineProperty: function() { diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js index 6e0a1ee635..0b1e118eda 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js @@ -16,7 +16,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var target = Object.create(null); var p = new OProxy(target, { defineProperty: function() { diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js index 3570aed1b3..dcdf892968 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js @@ -17,7 +17,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var target = Object.create(null); var p = new OProxy(target, { defineProperty: function() { diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js index 0cea2348c6..a1d99efe84 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js @@ -17,7 +17,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var target = Object.create(null); var p = new OProxy(target, { defineProperty: function() { diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js index d9f730f826..9fdfa2fad3 100644 --- a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js +++ b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js @@ -16,7 +16,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var target = Object.create(null); var p = new OProxy(target, { defineProperty: function() { diff --git a/test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js b/test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js index 25894d56e6..ee22faec42 100644 --- a/test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js @@ -19,7 +19,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { defineProperty: {} }); diff --git a/test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js b/test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js index b69c3b4bd0..34891d251e 100644 --- a/test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js @@ -17,7 +17,7 @@ info: | 5. If IsCallable(func) is false, throw a TypeError exception. ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { deleteProperty: {} }); diff --git a/test/built-ins/Proxy/get-fn-realm.js b/test/built-ins/Proxy/get-fn-realm.js index e1e066d855..a2fa4d5eeb 100644 --- a/test/built-ins/Proxy/get-fn-realm.js +++ b/test/built-ins/Proxy/get-fn-realm.js @@ -18,7 +18,7 @@ info: | c. Return ? GetFunctionRealm(proxyTarget). ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); // Ensure that the proxy does not report a `prototype` property var P = new Proxy(C, { get: function() {} }); diff --git a/test/built-ins/Proxy/get/trap-is-not-callable-realm.js b/test/built-ins/Proxy/get/trap-is-not-callable-realm.js index 44b0102ce2..18a7f88e04 100644 --- a/test/built-ins/Proxy/get/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/get/trap-is-not-callable-realm.js @@ -17,7 +17,7 @@ info: | 5. If IsCallable(func) is false, throw a TypeError exception. ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { get: {} }); diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js index 11d3d939a5..92a5003bc5 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js @@ -12,7 +12,7 @@ info: | exception. ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { getOwnPropertyDescriptor: function() { return null; } diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js index 21b0067c0d..e66ad8e74b 100644 --- a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js @@ -22,7 +22,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { getOwnPropertyDescriptor: {} }); diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js b/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js index 7c4d75e0e9..d05748afdf 100644 --- a/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js @@ -8,7 +8,7 @@ description: > context) ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { getPrototypeOf: {} }); diff --git a/test/built-ins/Proxy/has/trap-is-not-callable-realm.js b/test/built-ins/Proxy/has/trap-is-not-callable-realm.js index 7487ce9754..2f95e8eda1 100644 --- a/test/built-ins/Proxy/has/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/has/trap-is-not-callable-realm.js @@ -19,7 +19,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { has: {} }); diff --git a/test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js b/test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js index fad095079a..db771baa3b 100644 --- a/test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js @@ -21,7 +21,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { isExtensible: {} }); diff --git a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js index f1fb121d50..20d7931d73 100644 --- a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js +++ b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js @@ -20,7 +20,7 @@ info: | features: [Symbol] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var p = new other.Proxy({}, { ownKeys: function() { return undefined; diff --git a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js index fd717fc244..6db03b0f35 100644 --- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js @@ -17,7 +17,7 @@ info: | 5. If IsCallable(func) is false, throw a TypeError exception. ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({attr:1}, { ownKeys: {} }); diff --git a/test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js b/test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js index 363f7a1c40..aeec54ad69 100644 --- a/test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js @@ -21,7 +21,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { preventExtensions: {} }); diff --git a/test/built-ins/Proxy/set/trap-is-not-callable-realm.js b/test/built-ins/Proxy/set/trap-is-not-callable-realm.js index e8c0630ed3..528f1171fb 100644 --- a/test/built-ins/Proxy/set/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/set/trap-is-not-callable-realm.js @@ -17,7 +17,7 @@ info: | 5. If IsCallable(func) is false, throw a TypeError exception. ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { set: {} }); diff --git a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js index e030cc5f28..50982f25bd 100644 --- a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js +++ b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js @@ -22,7 +22,7 @@ info: | ... ---*/ -var OProxy = $.createRealm().global.Proxy; +var OProxy = $262.createRealm().global.Proxy; var p = new OProxy({}, { setPrototypeOf: {} }); diff --git a/test/built-ins/RegExp/proto-from-ctor-realm.js b/test/built-ins/RegExp/proto-from-ctor-realm.js index c1d3ec11af..4bc082e8b1 100644 --- a/test/built-ins/RegExp/proto-from-ctor-realm.js +++ b/test/built-ins/RegExp/proto-from-ctor-realm.js @@ -22,7 +22,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/RegExp/prototype/Symbol.split/splitter-proto-from-ctor-realm.js b/test/built-ins/RegExp/prototype/Symbol.split/splitter-proto-from-ctor-realm.js index 672f175a1d..a15be57d38 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/splitter-proto-from-ctor-realm.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/splitter-proto-from-ctor-realm.js @@ -18,7 +18,7 @@ info: > features: [Symbol.species] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; other.shared = null; var C = new other.Function('shared = this; return /./;'); C.prototype = null; diff --git a/test/built-ins/Set/proto-from-ctor-realm.js b/test/built-ins/Set/proto-from-ctor-realm.js index 79866d4882..6e58b81a02 100644 --- a/test/built-ins/Set/proto-from-ctor-realm.js +++ b/test/built-ins/Set/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/String/proto-from-ctor-realm.js b/test/built-ins/String/proto-from-ctor-realm.js index 6847ae8254..c8278a3907 100644 --- a/test/built-ins/String/proto-from-ctor-realm.js +++ b/test/built-ins/String/proto-from-ctor-realm.js @@ -20,7 +20,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/Symbol/for/cross-realm.js b/test/built-ins/Symbol/for/cross-realm.js index 9848ac72c1..589f837b41 100644 --- a/test/built-ins/Symbol/for/cross-realm.js +++ b/test/built-ins/Symbol/for/cross-realm.js @@ -10,7 +10,7 @@ info: > initialized as a new empty List. ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; var parent = Symbol.for('parent'); var child = OSymbol.for('child'); diff --git a/test/built-ins/Symbol/hasInstance/cross-realm.js b/test/built-ins/Symbol/hasInstance/cross-realm.js index e1d4987e0b..8068a8100d 100644 --- a/test/built-ins/Symbol/hasInstance/cross-realm.js +++ b/test/built-ins/Symbol/hasInstance/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.hasInstance] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.hasInstance, OSymbol.hasInstance); diff --git a/test/built-ins/Symbol/isConcatSpreadable/cross-realm.js b/test/built-ins/Symbol/isConcatSpreadable/cross-realm.js index 2ac3f49871..bc2e9c5b02 100644 --- a/test/built-ins/Symbol/isConcatSpreadable/cross-realm.js +++ b/test/built-ins/Symbol/isConcatSpreadable/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.isConcatSpreadable] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.isConcatSpreadable, OSymbol.isConcatSpreadable); diff --git a/test/built-ins/Symbol/iterator/cross-realm.js b/test/built-ins/Symbol/iterator/cross-realm.js index ea19cb76b1..371fb80a24 100644 --- a/test/built-ins/Symbol/iterator/cross-realm.js +++ b/test/built-ins/Symbol/iterator/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.iterator] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.iterator, OSymbol.iterator); diff --git a/test/built-ins/Symbol/keyFor/cross-realm.js b/test/built-ins/Symbol/keyFor/cross-realm.js index 72b0b0610b..83d63a2a3b 100644 --- a/test/built-ins/Symbol/keyFor/cross-realm.js +++ b/test/built-ins/Symbol/keyFor/cross-realm.js @@ -10,7 +10,7 @@ info: > initialized as a new empty List. ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; var parent = Symbol.for('parent'); var child = OSymbol.for('child'); diff --git a/test/built-ins/Symbol/match/cross-realm.js b/test/built-ins/Symbol/match/cross-realm.js index 266d6f90dc..687e8b2fd1 100644 --- a/test/built-ins/Symbol/match/cross-realm.js +++ b/test/built-ins/Symbol/match/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.match] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.match, OSymbol.match); diff --git a/test/built-ins/Symbol/replace/cross-realm.js b/test/built-ins/Symbol/replace/cross-realm.js index 57e64643e5..5e0f49d995 100644 --- a/test/built-ins/Symbol/replace/cross-realm.js +++ b/test/built-ins/Symbol/replace/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.replace] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.replace, OSymbol.replace); diff --git a/test/built-ins/Symbol/search/cross-realm.js b/test/built-ins/Symbol/search/cross-realm.js index be049474b6..cb747613f8 100644 --- a/test/built-ins/Symbol/search/cross-realm.js +++ b/test/built-ins/Symbol/search/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.search] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.search, OSymbol.search); diff --git a/test/built-ins/Symbol/species/cross-realm.js b/test/built-ins/Symbol/species/cross-realm.js index 704cd3b562..55323ee1a3 100644 --- a/test/built-ins/Symbol/species/cross-realm.js +++ b/test/built-ins/Symbol/species/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.species] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.species, OSymbol.species); diff --git a/test/built-ins/Symbol/split/cross-realm.js b/test/built-ins/Symbol/split/cross-realm.js index 798410b618..f3d910697c 100644 --- a/test/built-ins/Symbol/split/cross-realm.js +++ b/test/built-ins/Symbol/split/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.split] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.split, OSymbol.split); diff --git a/test/built-ins/Symbol/toPrimitive/cross-realm.js b/test/built-ins/Symbol/toPrimitive/cross-realm.js index 4f6a913f93..beab93b996 100644 --- a/test/built-ins/Symbol/toPrimitive/cross-realm.js +++ b/test/built-ins/Symbol/toPrimitive/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.split] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.split, OSymbol.split); diff --git a/test/built-ins/Symbol/toStringTag/cross-realm.js b/test/built-ins/Symbol/toStringTag/cross-realm.js index 3f92a26e41..f98706273f 100644 --- a/test/built-ins/Symbol/toStringTag/cross-realm.js +++ b/test/built-ins/Symbol/toStringTag/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.toStringTag] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.toStringTag, OSymbol.toStringTag); diff --git a/test/built-ins/Symbol/unscopables/cross-realm.js b/test/built-ins/Symbol/unscopables/cross-realm.js index ba97bd3313..42805a940b 100644 --- a/test/built-ins/Symbol/unscopables/cross-realm.js +++ b/test/built-ins/Symbol/unscopables/cross-realm.js @@ -10,6 +10,6 @@ info: > features: [Symbol.unscopables] ---*/ -var OSymbol = $.createRealm().global.Symbol; +var OSymbol = $262.createRealm().global.Symbol; assert.sameValue(Symbol.unscopables, OSymbol.unscopables); diff --git a/test/built-ins/ThrowTypeError/distinct-cross-realm.js b/test/built-ins/ThrowTypeError/distinct-cross-realm.js index 7a51dc1335..fe9fd31d13 100644 --- a/test/built-ins/ThrowTypeError/distinct-cross-realm.js +++ b/test/built-ins/ThrowTypeError/distinct-cross-realm.js @@ -11,7 +11,7 @@ info: > object that is defined once for each realm. ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var localArgs = function(){ "use strict"; return arguments; }(); var otherArgs = (new other.Function('return arguments;'))(); var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get; diff --git a/test/built-ins/TypedArrays/buffer-arg-proto-from-ctor-realm.js b/test/built-ins/TypedArrays/buffer-arg-proto-from-ctor-realm.js index bf2f67ffe4..0cf3f1faeb 100644 --- a/test/built-ins/TypedArrays/buffer-arg-proto-from-ctor-realm.js +++ b/test/built-ins/TypedArrays/buffer-arg-proto-from-ctor-realm.js @@ -26,7 +26,7 @@ includes: [testTypedArray.js] features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer-realm.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer-realm.js index 11e6900c9a..2ab1ee922d 100644 --- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer-realm.js +++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer-realm.js @@ -27,7 +27,7 @@ includes: [testTypedArray.js, detachArrayBuffer.js] features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var desc = { value: 0, configurable: false, diff --git a/test/built-ins/TypedArrays/internals/Get/detached-buffer-realm.js b/test/built-ins/TypedArrays/internals/Get/detached-buffer-realm.js index ba63c67cfb..d5b52becc7 100644 --- a/test/built-ins/TypedArrays/internals/Get/detached-buffer-realm.js +++ b/test/built-ins/TypedArrays/internals/Get/detached-buffer-realm.js @@ -17,7 +17,7 @@ info: > includes: [testTypedArray.js, detachArrayBuffer.js] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; testWithTypedArrayConstructors(function(TA) { var OtherTA = other[TA.name]; diff --git a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-realm.js b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-realm.js index 5400f176e5..637a4f0acc 100644 --- a/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-realm.js +++ b/test/built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-realm.js @@ -24,7 +24,7 @@ info: > includes: [testTypedArray.js, detachArrayBuffer.js] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; testWithTypedArrayConstructors(function(TA) { var OtherTA = other[TA.name]; diff --git a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-realm.js b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-realm.js index 9b1b5eb3c1..acebcc15b4 100644 --- a/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-realm.js +++ b/test/built-ins/TypedArrays/internals/HasProperty/detached-buffer-realm.js @@ -19,7 +19,7 @@ features: [Reflect] includes: [testTypedArray.js, detachArrayBuffer.js] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; testWithTypedArrayConstructors(function(TA) { var OtherTA = other[TA.name]; diff --git a/test/built-ins/TypedArrays/internals/Set/detached-buffer-realm.js b/test/built-ins/TypedArrays/internals/Set/detached-buffer-realm.js index 2f84846458..e453d5b209 100644 --- a/test/built-ins/TypedArrays/internals/Set/detached-buffer-realm.js +++ b/test/built-ins/TypedArrays/internals/Set/detached-buffer-realm.js @@ -25,7 +25,7 @@ info: > includes: [testTypedArray.js, detachArrayBuffer.js] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; testWithTypedArrayConstructors(function(TA) { var OtherTA = other[TA.name]; diff --git a/test/built-ins/TypedArrays/length-arg-proto-from-ctor-realm.js b/test/built-ins/TypedArrays/length-arg-proto-from-ctor-realm.js index f77e1cac3d..9cfcf06b60 100644 --- a/test/built-ins/TypedArrays/length-arg-proto-from-ctor-realm.js +++ b/test/built-ins/TypedArrays/length-arg-proto-from-ctor-realm.js @@ -25,7 +25,7 @@ includes: [testTypedArray.js] features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/TypedArrays/no-args-proto-from-ctor-realm.js b/test/built-ins/TypedArrays/no-args-proto-from-ctor-realm.js index bb676c7b3e..dabbdb8d80 100644 --- a/test/built-ins/TypedArrays/no-args-proto-from-ctor-realm.js +++ b/test/built-ins/TypedArrays/no-args-proto-from-ctor-realm.js @@ -25,7 +25,7 @@ includes: [testTypedArray.js] features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/TypedArrays/object-arg-proto-from-ctor-realm.js b/test/built-ins/TypedArrays/object-arg-proto-from-ctor-realm.js index ed3143185b..decbb06448 100644 --- a/test/built-ins/TypedArrays/object-arg-proto-from-ctor-realm.js +++ b/test/built-ins/TypedArrays/object-arg-proto-from-ctor-realm.js @@ -26,7 +26,7 @@ includes: [testTypedArray.js] features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-custom-species-proto-from-ctor-realm.js b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-custom-species-proto-from-ctor-realm.js index 62aaabf4af..7ce5f77d57 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-custom-species-proto-from-ctor-realm.js +++ b/test/built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-custom-species-proto-from-ctor-realm.js @@ -39,7 +39,7 @@ features: [Symbol.species] var sample1 = new Int8Array(); var sample2 = new Int16Array(); -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/TypedArrays/typedarray-arg-proto-from-ctor-realm.js b/test/built-ins/TypedArrays/typedarray-arg-proto-from-ctor-realm.js index cc17df57cc..deeb55cd29 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-proto-from-ctor-realm.js +++ b/test/built-ins/TypedArrays/typedarray-arg-proto-from-ctor-realm.js @@ -26,7 +26,7 @@ includes: [testTypedArray.js] features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-custom-proto-from-ctor-realm.js b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-custom-proto-from-ctor-realm.js index ff91752565..8a96688156 100644 --- a/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-custom-proto-from-ctor-realm.js +++ b/test/built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-custom-proto-from-ctor-realm.js @@ -49,7 +49,7 @@ includes: [testTypedArray.js] features: [Symbol.species] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/WeakMap/proto-from-ctor-realm.js b/test/built-ins/WeakMap/proto-from-ctor-realm.js index 431f90fb27..b010ff5ade 100644 --- a/test/built-ins/WeakMap/proto-from-ctor-realm.js +++ b/test/built-ins/WeakMap/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/built-ins/WeakSet/proto-from-ctor-realm.js b/test/built-ins/WeakSet/proto-from-ctor-realm.js index e54b4bda32..f126f2fb55 100644 --- a/test/built-ins/WeakSet/proto-from-ctor-realm.js +++ b/test/built-ins/WeakSet/proto-from-ctor-realm.js @@ -21,7 +21,7 @@ info: | features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/language/eval-code/indirect/realm.js b/test/language/eval-code/indirect/realm.js index 1197c688ca..d23a397a71 100644 --- a/test/language/eval-code/indirect/realm.js +++ b/test/language/eval-code/indirect/realm.js @@ -25,7 +25,7 @@ info: | strictEval). ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var otherEval = other.eval; otherEval('var x = 23;'); diff --git a/test/language/expressions/call/eval-realm-indirect.js b/test/language/expressions/call/eval-realm-indirect.js index ca5fa1c1c1..96c4857087 100644 --- a/test/language/expressions/call/eval-realm-indirect.js +++ b/test/language/expressions/call/eval-realm-indirect.js @@ -17,7 +17,7 @@ var x = 'outside'; var result; (function() { - var eval = $.createRealm().global.eval; + var eval = $262.createRealm().global.eval; eval('var x = "inside";'); diff --git a/test/language/expressions/generators/eval-body-proto-realm.js b/test/language/expressions/generators/eval-body-proto-realm.js index 95e9bc75f1..62bdc5d2ca 100644 --- a/test/language/expressions/generators/eval-body-proto-realm.js +++ b/test/language/expressions/generators/eval-body-proto-realm.js @@ -20,7 +20,7 @@ info: > [...] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var g = other.eval('(0, function*() {})'); var GeneratorPrototype = Object.getPrototypeOf(g.prototype); g.prototype = null; diff --git a/test/language/expressions/new/non-ctor-err-realm.js b/test/language/expressions/new/non-ctor-err-realm.js index 1a0221b957..bf1434b928 100644 --- a/test/language/expressions/new/non-ctor-err-realm.js +++ b/test/language/expressions/new/non-ctor-err-realm.js @@ -18,7 +18,7 @@ info: | 7. If IsConstructor(constructor) is false, throw a TypeError exception. ---*/ -var otherParseInt = $.createRealm().global.parseInt; +var otherParseInt = $262.createRealm().global.parseInt; assert.sameValue(typeof otherParseInt, 'function'); diff --git a/test/language/expressions/super/realm.js b/test/language/expressions/super/realm.js index 5d1c6b651d..3929474de2 100644 --- a/test/language/expressions/super/realm.js +++ b/test/language/expressions/super/realm.js @@ -22,7 +22,7 @@ info: > features: [Reflect] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var C = new other.Function(); C.prototype = null; diff --git a/test/language/expressions/tagged-template/cache-realm.js b/test/language/expressions/tagged-template/cache-realm.js index ccb1a5d938..9d76e194df 100644 --- a/test/language/expressions/tagged-template/cache-realm.js +++ b/test/language/expressions/tagged-template/cache-realm.js @@ -30,7 +30,7 @@ info: | i. Return e.[[Array]]. ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var strings1, strings2; strings1 = (function(strings) { return strings; })`1234`; diff --git a/test/language/global-code/script-decl-func-dups.js b/test/language/global-code/script-decl-func-dups.js index b94b156997..af9ec3da18 100644 --- a/test/language/global-code/script-decl-func-dups.js +++ b/test/language/global-code/script-decl-func-dups.js @@ -24,7 +24,7 @@ info: | [...] ---*/ -$.evalScript( +$262.evalScript( 'function f() { return 1; }' + 'function f() { return 2; }' + 'function f() { return 3; }' diff --git a/test/language/global-code/script-decl-func-err-non-configurable.js b/test/language/global-code/script-decl-func-err-non-configurable.js index 9810c814ef..56f9e3eae2 100644 --- a/test/language/global-code/script-decl-func-err-non-configurable.js +++ b/test/language/global-code/script-decl-func-err-non-configurable.js @@ -70,35 +70,35 @@ Object.defineProperty( ); assert.throws(TypeError, function() { - $.evalScript('var x; function data1() {}'); + $262.evalScript('var x; function data1() {}'); }, 'writable, non-enumerable data property'); assert.throws(ReferenceError, function() { x; }, 'bindings not created for writable, non-enumerable data property'); assert.throws(TypeError, function() { - $.evalScript('var x; function data2() {}'); + $262.evalScript('var x; function data2() {}'); }, 'non-writable, enumerable data property'); assert.throws(ReferenceError, function() { x; }, 'bindings not created for non-writable, enumerable data property'); assert.throws(TypeError, function() { - $.evalScript('var x; function data3() {}'); + $262.evalScript('var x; function data3() {}'); }, 'non-writable, non-enumerable data property'); assert.throws(ReferenceError, function() { x; }, 'bindings not created for non-writable, non-enumerable data property'); assert.throws(TypeError, function() { - $.evalScript('var x; function accessor1() {}'); + $262.evalScript('var x; function accessor1() {}'); }, 'enumerable accessor property'); assert.throws(ReferenceError, function() { x; }, 'bindings not created for enumerableaccessor property'); assert.throws(TypeError, function() { - $.evalScript('var x; function accessor2() {}'); + $262.evalScript('var x; function accessor2() {}'); }, 'non-enumerable accessor property'); assert.throws(ReferenceError, function() { x; diff --git a/test/language/global-code/script-decl-func-err-non-extensible.js b/test/language/global-code/script-decl-func-err-non-extensible.js index f0fe045e7e..9fdb2a8716 100644 --- a/test/language/global-code/script-decl-func-err-non-extensible.js +++ b/test/language/global-code/script-decl-func-err-non-extensible.js @@ -35,7 +35,7 @@ var executed = false; Object.preventExtensions(this); assert.throws(TypeError, function() { - $.evalScript('executed = true; function test262() {}'); + $262.evalScript('executed = true; function test262() {}'); }); assert.sameValue(executed, false); diff --git a/test/language/global-code/script-decl-func.js b/test/language/global-code/script-decl-func.js index 101b969c9a..50ab69acc8 100644 --- a/test/language/global-code/script-decl-func.js +++ b/test/language/global-code/script-decl-func.js @@ -38,7 +38,7 @@ info: | includes: [propertyHelper.js] ---*/ -$.evalScript('function brandNew() {}'); +$262.evalScript('function brandNew() {}'); assert.sameValue( typeof brandNew, 'function', 'new binding on an extensible global object' @@ -58,7 +58,7 @@ Object.defineProperty( // considered by any of the declarations which follow. Object.preventExtensions(this); -$.evalScript('function configurable() {}'); +$262.evalScript('function configurable() {}'); assert.sameValue( typeof configurable, 'function', 'like-named configurable property' @@ -67,7 +67,7 @@ verifyEnumerable(this, 'configurable') verifyWritable(this, 'configurable'); verifyNotConfigurable(this, 'configurable'); -$.evalScript('function nonConfigurable() {}'); +$262.evalScript('function nonConfigurable() {}'); assert.sameValue( typeof nonConfigurable, diff --git a/test/language/global-code/script-decl-lex-deletion.js b/test/language/global-code/script-decl-lex-deletion.js index abad9c4627..9755491a0e 100644 --- a/test/language/global-code/script-decl-lex-deletion.js +++ b/test/language/global-code/script-decl-lex-deletion.js @@ -18,7 +18,7 @@ info: | flags: [noStrict] ---*/ -$.evalScript('let test262let;'); +$262.evalScript('let test262let;'); delete test262let; @@ -26,13 +26,13 @@ delete test262let; // to ensure that the entries in the environment record persist. test262let; -$.evalScript('const test262const = null;'); +$262.evalScript('const test262const = null;'); delete test262const; test262const; -$.evalScript('class test262class {}'); +$262.evalScript('class test262class {}'); delete test262class; diff --git a/test/language/global-code/script-decl-lex-lex.js b/test/language/global-code/script-decl-lex-lex.js index 13afba6dca..b5cba0078c 100644 --- a/test/language/global-code/script-decl-lex-lex.js +++ b/test/language/global-code/script-decl-lex-lex.js @@ -18,21 +18,21 @@ const test262Const = null; class test262Class {} assert.throws(SyntaxError, function() { - $.evalScript('var x; let test262Let;'); + $262.evalScript('var x; let test262Let;'); }, '`let` binding'); assert.throws(ReferenceError, function() { x; }, 'No bindings created for script containing `let` redeclaration'); assert.throws(SyntaxError, function() { - $.evalScript('var x; let test262Const;'); + $262.evalScript('var x; let test262Const;'); }, '`const` binding'); assert.throws(ReferenceError, function() { x; }, 'No bindings created for script containing `const` redeclaration'); assert.throws(SyntaxError, function() { - $.evalScript('var x; let test262Class;'); + $262.evalScript('var x; let test262Class;'); }, '`class` binding'); assert.throws(ReferenceError, function() { x; diff --git a/test/language/global-code/script-decl-lex-restricted-global.js b/test/language/global-code/script-decl-lex-restricted-global.js index ca7f5b562f..59fcd67dd3 100644 --- a/test/language/global-code/script-decl-lex-restricted-global.js +++ b/test/language/global-code/script-decl-lex-restricted-global.js @@ -20,10 +20,10 @@ info: | Object.defineProperty(this, 'test262Configurable', { configurable: true }); Object.defineProperty(this, 'test262NonConfigurable', { configurable: false }); -$.evalScript('let test262Configurable;'); +$262.evalScript('let test262Configurable;'); assert.throws(SyntaxError, function() { - $.evalScript('var x; let test262NonConfigurable;'); + $262.evalScript('var x; let test262NonConfigurable;'); }); assert.throws(ReferenceError, function() { diff --git a/test/language/global-code/script-decl-lex-var.js b/test/language/global-code/script-decl-lex-var.js index e6666b8125..324b1ed2d1 100644 --- a/test/language/global-code/script-decl-lex-var.js +++ b/test/language/global-code/script-decl-lex-var.js @@ -15,7 +15,7 @@ var test262Var; function test262Fn() {} assert.throws(SyntaxError, function() { - $.evalScript('var x; let test262Var;'); + $262.evalScript('var x; let test262Var;'); }, 'variable'); assert.throws(ReferenceError, function() { @@ -23,7 +23,7 @@ assert.throws(ReferenceError, function() { }, 'no bindings created (script shadowing variable)'); assert.throws(SyntaxError, function() { - $.evalScript('var x; let test262Fn;'); + $262.evalScript('var x; let test262Fn;'); }, 'function'); assert.throws(ReferenceError, function() { diff --git a/test/language/global-code/script-decl-lex.js b/test/language/global-code/script-decl-lex.js index e10e7b0394..cb67c5f6a1 100644 --- a/test/language/global-code/script-decl-lex.js +++ b/test/language/global-code/script-decl-lex.js @@ -21,7 +21,7 @@ info: | // declarations. Object.preventExtensions(this); -$.evalScript('let test262let = 1;'); +$262.evalScript('let test262let = 1;'); test262let = 2; @@ -32,7 +32,7 @@ assert.sameValue( 'property not created on the global object (let)' ); -$.evalScript('const test262const = 3;'); +$262.evalScript('const test262const = 3;'); assert.throws(TypeError, function() { test262const = 4; @@ -44,7 +44,7 @@ assert.sameValue( 'property not created on the global object (const)' ); -$.evalScript('class test262class {}'); +$262.evalScript('class test262class {}'); test262class = 5; diff --git a/test/language/global-code/script-decl-var-collision.js b/test/language/global-code/script-decl-var-collision.js index 37df494eb9..42b11789bd 100644 --- a/test/language/global-code/script-decl-var-collision.js +++ b/test/language/global-code/script-decl-var-collision.js @@ -16,46 +16,46 @@ let test262Let; const test262Const = null; class test262Class {} -$.evalScript('var test262Var;'); -$.evalScript('function test262Var() {}'); +$262.evalScript('var test262Var;'); +$262.evalScript('function test262Var() {}'); assert.throws(SyntaxError, function() { - $.evalScript('var x; var test262Let;'); + $262.evalScript('var x; var test262Let;'); }, '`var` on `let` binding'); assert.throws(ReferenceError, function() { x; }, 'no bindings created (script declaring a `var` on a `let` binding)'); assert.throws(SyntaxError, function() { - $.evalScript('var x; var test262Const;'); + $262.evalScript('var x; var test262Const;'); }, '`var` on `const` binding'); assert.throws(ReferenceError, function() { x; }, 'no bindings created (script declaring a `var` on a `const` binding)'); assert.throws(SyntaxError, function() { - $.evalScript('var x; var test262Class;'); + $262.evalScript('var x; var test262Class;'); }, '`var` on `class` binding'); assert.throws(ReferenceError, function() { x; }, 'no bindings created (script declaring a `var` on a `class` binding)'); assert.throws(SyntaxError, function() { - $.evalScript('var x; function test262Let() {}'); + $262.evalScript('var x; function test262Let() {}'); }, 'function on `let` binding'); assert.throws(ReferenceError, function() { x; }, 'no bindings created (script declaring a function on a `let` binding)'); assert.throws(SyntaxError, function() { - $.evalScript('var x; function test262Const() {}'); + $262.evalScript('var x; function test262Const() {}'); }, 'function on `const` binding'); assert.throws(ReferenceError, function() { x; }, 'no bindings created (script declaring a function on a `const` binding)'); assert.throws(SyntaxError, function() { - $.evalScript('var x; function test262Class() {}'); + $262.evalScript('var x; function test262Class() {}'); } , 'function on `class` binding'); assert.throws(ReferenceError, function() { x; diff --git a/test/language/global-code/script-decl-var-err.js b/test/language/global-code/script-decl-var-err.js index f6331889a8..c0708c36b5 100644 --- a/test/language/global-code/script-decl-var-err.js +++ b/test/language/global-code/script-decl-var-err.js @@ -34,7 +34,7 @@ var executed = false; Object.preventExtensions(this); assert.throws(TypeError, function() { - $.evalScript('executed = true; var test262;'); + $262.evalScript('executed = true; var test262;'); }); assert.sameValue(executed, false); diff --git a/test/language/global-code/script-decl-var.js b/test/language/global-code/script-decl-var.js index 791b1e65be..79dda019f4 100644 --- a/test/language/global-code/script-decl-var.js +++ b/test/language/global-code/script-decl-var.js @@ -32,7 +32,7 @@ info: | includes: [propertyHelper.js] ---*/ -$.evalScript('var brandNew;'); +$262.evalScript('var brandNew;'); assert.sameValue( this.brandNew, undefined, 'new binding on an extensible global object' @@ -56,14 +56,14 @@ Object.defineProperty( // considered by any of the declarations which follow. Object.preventExtensions(this); -$.evalScript('var configurable;'); +$262.evalScript('var configurable;'); assert.sameValue(configurable, 0, 'like-named configurable property'); verifyNotEnumerable(this, 'configurable'); verifyNotWritable(this, 'configurable'); verifyConfigurable(this, 'configurable'); -$.evalScript('var nonConfigurable;'); +$262.evalScript('var nonConfigurable;'); assert.sameValue(nonConfigurable, 0, 'like-named non-configurable property'); verifyNotEnumerable(this, 'nonConfigurable'); diff --git a/test/language/types/reference/get-value-prop-base-primitive-realm.js b/test/language/types/reference/get-value-prop-base-primitive-realm.js index 277bb2bde6..c2480f2ad7 100644 --- a/test/language/types/reference/get-value-prop-base-primitive-realm.js +++ b/test/language/types/reference/get-value-prop-base-primitive-realm.js @@ -17,7 +17,7 @@ info: > features: [Symbol] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; other.Number.prototype.test262 = 'number prototype'; other.value = 1; diff --git a/test/language/types/reference/put-value-prop-base-primitive-realm.js b/test/language/types/reference/put-value-prop-base-primitive-realm.js index f91ed9acb7..039f62761f 100644 --- a/test/language/types/reference/put-value-prop-base-primitive-realm.js +++ b/test/language/types/reference/put-value-prop-base-primitive-realm.js @@ -21,7 +21,7 @@ info: > features: [Symbol, Proxy] ---*/ -var other = $.createRealm().global; +var other = $262.createRealm().global; var numberCount = 0; var stringCount = 0; var booleanCount = 0;