Rename $ => $262. Fixes gh-802 (#823)

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2017-03-01 16:34:15 -05:00 committed by Leo Balter
parent 58b326f0c4
commit fdd2fa9b1c
116 changed files with 141 additions and 142 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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() {

View File

@ -21,7 +21,7 @@ info: |
[...]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -20,7 +20,7 @@ info: |
[...]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -21,7 +21,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -19,7 +19,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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++;
}
});

View File

@ -21,7 +21,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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);

View File

@ -23,7 +23,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -23,7 +23,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -22,7 +22,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -21,7 +21,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -21,7 +21,7 @@ info: >
[...]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var func = new other.Function('return this;');
var subject;

View File

@ -22,7 +22,7 @@ info: >
[...]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var func = new other.Function('return this;');
var subject;

View File

@ -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();

View File

@ -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 = {

View File

@ -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;' +

View File

@ -18,7 +18,7 @@ info: |
features: [class]
---*/
var C = $.createRealm().global.eval(
var C = $262.createRealm().global.eval(
'(class C extends Object {' +
' constructor() {}' +
'});'

View File

@ -29,7 +29,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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);

View File

@ -19,7 +19,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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;

View File

@ -21,7 +21,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -21,7 +21,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -19,7 +19,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -23,7 +23,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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; } })'
);

View File

@ -8,7 +8,7 @@ description: >
context)
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy(function() {}, {
apply: {}
});

View File

@ -12,7 +12,7 @@ info: |
[...]
---*/
var C = $.createRealm().global.eval(
var C = $262.createRealm().global.eval(
'new Proxy(function() {}, { construct: function(_, args) { return args; } })'
);

View File

@ -8,7 +8,7 @@ description: >
context)
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy(function() {}, {
construct: {}
});

View File

@ -23,7 +23,7 @@ info: >
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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) {

View File

@ -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();

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -19,7 +19,7 @@ info: |
...
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy({}, {
defineProperty: {}
});

View File

@ -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: {}
});

View File

@ -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() {} });

View File

@ -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: {}
});

View File

@ -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; }

View File

@ -22,7 +22,7 @@ info: |
...
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy({}, {
getOwnPropertyDescriptor: {}
});

View File

@ -8,7 +8,7 @@ description: >
context)
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy({}, {
getPrototypeOf: {}
});

View File

@ -19,7 +19,7 @@ info: |
...
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy({}, {
has: {}
});

View File

@ -21,7 +21,7 @@ info: |
...
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy({}, {
isExtensible: {}
});

View File

@ -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;

View File

@ -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: {}
});

View File

@ -21,7 +21,7 @@ info: |
...
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy({}, {
preventExtensions: {}
});

View File

@ -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: {}
});

View File

@ -22,7 +22,7 @@ info: |
...
---*/
var OProxy = $.createRealm().global.Proxy;
var OProxy = $262.createRealm().global.Proxy;
var p = new OProxy({}, {
setPrototypeOf: {}
});

View File

@ -22,7 +22,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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;

View File

@ -21,7 +21,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -20,7 +20,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -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');

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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');

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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,

View File

@ -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];

View File

@ -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];

View File

@ -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];

View File

@ -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];

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -21,7 +21,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -21,7 +21,7 @@ info: |
features: [Reflect]
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;

View File

@ -25,7 +25,7 @@ info: |
strictEval).
---*/
var other = $.createRealm().global;
var other = $262.createRealm().global;
var otherEval = other.eval;
otherEval('var x = 23;');

View File

@ -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";');

View File

@ -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;

View File

@ -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');

Some files were not shown because too many files have changed in this diff Show More