diff options
Diffstat (limited to 'test')
114 files changed, 137 insertions, 137 deletions
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 9ddd3b785..5510bcd6b 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 ae5e3800c..20915985c 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 39ac89ade..09eb4a0b1 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 ef206de6e..8549b3c0c 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 19a1290e7..f2a4ceec5 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 2dadf51e5..5101165ce 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 8e57803e6..d65431198 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 b4c27c108..5427c881b 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 ede9df6ba..709111905 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 dc266037c..d06769960 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 6b91b72a0..a18e5a29f 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 4a57e3546..39b89150a 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 cce3c7254..ff39804ea 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 e39afb789..fea6a06ae 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 e4eda7446..4038c9b36 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 2f04de39f..5f377283e 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 f5b5b383b..f7ada674c 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 3f20e1814..95d1b3db8 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 5a680374c..d1200f6ad 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 b53c0773b..a04e27f8c 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 bba87e1a5..c48161fa4 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 ddb87e650..d4d641fcb 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 4df0dc42d..1df54747f 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 cc1a668ca..11aa62b74 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 e4e609579..1433e5e42 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 a52864477..87bff8a5e 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 ff8d83d1c..52e9c69e2 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 c051a457d..4c9484659 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 61c396a3e..131356859 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 fda8693d8..40d115390 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 a7e9be216..ed6b03795 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 7f7394ce3..5a485ef12 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 2ce68b29e..737408a32 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 b80d89f9a..dad5208bb 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 4d6da3ad8..70e8b29b9 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 4af37b92f..b7092136f 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 f2f0ab28d..b47d5966e 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 0b4ff7258..a88845b4d 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 b524b6213..fe22d9c8a 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 3d73e03e4..c556ce2ea 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 d285aff71..3fbd4af5b 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 a675b3a7b..7bee5d9af 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 303be843a..22039b300 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 061343d2e..747158e43 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 6e0a1ee63..0b1e118ed 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 3570aed1b..dcdf89296 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 0cea2348c..a1d99efe8 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 d9f730f82..9fdfa2fad 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 25894d56e..ee22faec4 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 b69c3b4bd..34891d251 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 e1e066d85..a2fa4d5ee 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 44b0102ce..18a7f88e0 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 11d3d939a..92a5003bc 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 21b0067c0..e66ad8e74 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 7c4d75e0e..d05748afd 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 7487ce975..2f95e8eda 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 fad095079..db771baa3 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 f1fb121d5..20d7931d7 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 fd717fc24..6db03b0f3 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 363f7a1c4..aeec54ad6 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 e8c0630ed..528f1171f 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 e030cc5f2..50982f25b 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 c1d3ec11a..4bc082e8b 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 672f175a1..a15be57d3 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 79866d488..6e58b81a0 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 6847ae825..c8278a390 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 9848ac72c..589f837b4 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 e1d4987e0..8068a8100 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 2ac3f4987..bc2e9c5b0 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 ea19cb76b..371fb80a2 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 72b0b0610..83d63a2a3 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 266d6f90d..687e8b2fd 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 57e64643e..5e0f49d99 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 be049474b..cb747613f 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 704cd3b56..55323ee1a 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 798410b61..f3d910697 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 4f6a913f9..beab93b99 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 3f92a26e4..f98706273 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 ba97bd331..42805a940 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 7a51dc133..fe9fd31d1 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 bf2f67ffe..0cf3f1fae 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 11e6900c9..2ab1ee922 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 ba63c67cf..d5b52becc 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 5400f176e..637a4f0ac 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 9b1b5eb3c..acebcc15b 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 2f8484645..e453d5b20 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 f77e1cac3..9cfcf06b6 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 bb676c7b3..dabbdb8d8 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 ed3143185..decbb0644 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 62aaabf4a..7ce5f77d5 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 cc17df57c..deeb55cd2 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 ff9175256..8a9668815 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 431f90fb2..b010ff5ad 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 e54b4bda3..f126f2fb5 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 1197c688c..d23a397a7 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 ca5fa1c1c..96c485708 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 95e9bc75f..62bdc5d2c 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 1a0221b95..bf1434b92 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 5d1c6b651..3929474de 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 ccb1a5d93..9d76e194d 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 b94b15699..af9ec3da1 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 9810c814e..56f9e3eae 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 f0fe045e7..9fdb2a871 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 101b969c9..50ab69acc 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 abad9c462..9755491a0 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 13afba6dc..b5cba0078 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 ca7f5b562..59fcd67dd 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 e6666b812..324b1ed2d 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 e10e7b039..cb67c5f6a 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 37df494eb..42b11789b 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 f6331889a..c0708c36b 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 791b1e65b..79dda019f 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 277bb2bde..c2480f2ad 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 f91ed9acb..039f62761 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; |