mirror of https://github.com/tc39/test262.git
Rename $ => $262. Fixes gh-802 (#823)
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
58b326f0c4
commit
fdd2fa9b1c
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
[...]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
|||
[...]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -19,7 +19,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ info: >
|
|||
[...]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var func = new other.Function('return this;');
|
||||
var subject;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ info: >
|
|||
[...]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var func = new other.Function('return this;');
|
||||
var subject;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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;' +
|
||||
|
|
|
@ -18,7 +18,7 @@ info: |
|
|||
features: [class]
|
||||
---*/
|
||||
|
||||
var C = $.createRealm().global.eval(
|
||||
var C = $262.createRealm().global.eval(
|
||||
'(class C extends Object {' +
|
||||
' constructor() {}' +
|
||||
'});'
|
||||
|
|
|
@ -29,7 +29,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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; } })'
|
||||
);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ description: >
|
|||
context)
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy(function() {}, {
|
||||
apply: {}
|
||||
});
|
||||
|
|
|
@ -12,7 +12,7 @@ info: |
|
|||
[...]
|
||||
---*/
|
||||
|
||||
var C = $.createRealm().global.eval(
|
||||
var C = $262.createRealm().global.eval(
|
||||
'new Proxy(function() {}, { construct: function(_, args) { return args; } })'
|
||||
);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ description: >
|
|||
context)
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy(function() {}, {
|
||||
construct: {}
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@ info: >
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -19,7 +19,7 @@ info: |
|
|||
...
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy({}, {
|
||||
defineProperty: {}
|
||||
});
|
||||
|
|
|
@ -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: {}
|
||||
});
|
||||
|
|
|
@ -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() {} });
|
||||
|
|
|
@ -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: {}
|
||||
});
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
...
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy({}, {
|
||||
getOwnPropertyDescriptor: {}
|
||||
});
|
||||
|
|
|
@ -8,7 +8,7 @@ description: >
|
|||
context)
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy({}, {
|
||||
getPrototypeOf: {}
|
||||
});
|
||||
|
|
|
@ -19,7 +19,7 @@ info: |
|
|||
...
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy({}, {
|
||||
has: {}
|
||||
});
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
...
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy({}, {
|
||||
isExtensible: {}
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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: {}
|
||||
});
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
...
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy({}, {
|
||||
preventExtensions: {}
|
||||
});
|
||||
|
|
|
@ -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: {}
|
||||
});
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
...
|
||||
---*/
|
||||
|
||||
var OProxy = $.createRealm().global.Proxy;
|
||||
var OProxy = $262.createRealm().global.Proxy;
|
||||
var p = new OProxy({}, {
|
||||
setPrototypeOf: {}
|
||||
});
|
||||
|
|
|
@ -22,7 +22,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ info: |
|
|||
features: [Reflect]
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var C = new other.Function();
|
||||
C.prototype = null;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ info: |
|
|||
strictEval).
|
||||
---*/
|
||||
|
||||
var other = $.createRealm().global;
|
||||
var other = $262.createRealm().global;
|
||||
var otherEval = other.eval;
|
||||
|
||||
otherEval('var x = 23;');
|
||||
|
|
|
@ -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";');
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue