mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
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
|
- **`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
|
the test runner. This is used as a communication mechanism for asynchronous
|
||||||
tests (via the `async` flag, described below).
|
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
|
- **`createRealm`** - a function which creates a new [ECMAScript
|
||||||
Realm](https://tc39.github.io/ecma262/2016/#sec-code-realms),
|
Realm](https://tc39.github.io/ecma262/2016/#sec-code-realms),
|
||||||
defines this API on the new realm's global object, and returns the `$`
|
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).
|
5. Let status be ScriptEvaluation(s).
|
||||||
6. Return Completion(status).
|
6. Return Completion(status).
|
||||||
|
|
||||||
- **`global`** - a reference to the global object on which `$` was initially
|
- **`global`** - a reference to the global object on which `$262` was initially defined
|
||||||
defined
|
|
||||||
- **`agent`** - an ordinary object with the following properties:
|
- **`agent`** - an ordinary object with the following properties:
|
||||||
- **`start`** - a function that takes a script source string and runs
|
- **`start`** - a function that takes a script source string and runs
|
||||||
the script in a concurrent agent. Will block until that agent is
|
the script in a concurrent agent. Will block until that agent is
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
function $DETACHBUFFER(buffer) {
|
function $DETACHBUFFER(buffer) {
|
||||||
if (!$ || typeof $.detachArrayBuffer !== "function") {
|
if (!$262 || typeof $262.detachArrayBuffer !== "function") {
|
||||||
throw new Test262Error("No method available to detach an ArrayBuffer");
|
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).
|
a. Return ? ArraySetLength(A, Desc).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OArray = $.createRealm().global.Array;
|
var OArray = $262.createRealm().global.Array;
|
||||||
var array = new OArray();
|
var array = new OArray();
|
||||||
|
|
||||||
assert.throws(RangeError, function() {
|
assert.throws(RangeError, function() {
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ info: |
|
|||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ info: |
|
|||||||
|
|
||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var OArray = $.createRealm().global.Array;
|
var OArray = $262.createRealm().global.Array;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -25,7 +25,7 @@ info: |
|
|||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var CustomCtor = function() {};
|
var CustomCtor = function() {};
|
||||||
var OObject = $.createRealm().global.Object;
|
var OObject = $262.createRealm().global.Object;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -25,7 +25,7 @@ info: |
|
|||||||
|
|
||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var OArray = $.createRealm().global.Array;
|
var OArray = $262.createRealm().global.Array;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -26,7 +26,7 @@ info: |
|
|||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var CustomCtor = function() {};
|
var CustomCtor = function() {};
|
||||||
var OObject = $.createRealm().global.Object;
|
var OObject = $262.createRealm().global.Object;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -25,7 +25,7 @@ info: |
|
|||||||
|
|
||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var OArray = $.createRealm().global.Array;
|
var OArray = $262.createRealm().global.Array;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -26,7 +26,7 @@ info: |
|
|||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var CustomCtor = function() {};
|
var CustomCtor = function() {};
|
||||||
var OObject = $.createRealm().global.Object;
|
var OObject = $262.createRealm().global.Object;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -25,7 +25,7 @@ info: |
|
|||||||
|
|
||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var OArray = $.createRealm().global.Array;
|
var OArray = $262.createRealm().global.Array;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -26,7 +26,7 @@ info: |
|
|||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var CustomCtor = function() {};
|
var CustomCtor = function() {};
|
||||||
var OObject = $.createRealm().global.Object;
|
var OObject = $262.createRealm().global.Object;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -25,7 +25,7 @@ info: |
|
|||||||
|
|
||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var OArray = $.createRealm().global.Array;
|
var OArray = $262.createRealm().global.Array;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -26,7 +26,7 @@ info: |
|
|||||||
var array = [];
|
var array = [];
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var CustomCtor = function() {};
|
var CustomCtor = function() {};
|
||||||
var OObject = $.createRealm().global.Object;
|
var OObject = $262.createRealm().global.Object;
|
||||||
var speciesDesc = {
|
var speciesDesc = {
|
||||||
get: function() {
|
get: function() {
|
||||||
callCount += 1;
|
callCount += 1;
|
||||||
|
@ -19,7 +19,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ testWithTypedArrayConstructors(TA => {
|
|||||||
var i = 0;
|
var i = 0;
|
||||||
assert.throws(TypeError, () => {
|
assert.throws(TypeError, () => {
|
||||||
for (let key of typedArray.keys()) {
|
for (let key of typedArray.keys()) {
|
||||||
$.detachArrayBuffer(typedArray.buffer);
|
$262.detachArrayBuffer(typedArray.buffer);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
var buffer = new ArrayBuffer(0);
|
var buffer = new ArrayBuffer(0);
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
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 func = new other.Function('return this;');
|
||||||
var subject;
|
var subject;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ info: >
|
|||||||
[...]
|
[...]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var func = new other.Function('return this;');
|
var func = new other.Function('return this;');
|
||||||
var subject;
|
var subject;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
features: [class]
|
features: [class]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var C = $.createRealm().global.eval('0, class {}');
|
var C = $262.createRealm().global.eval('0, class {}');
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
C();
|
C();
|
||||||
|
@ -40,7 +40,7 @@ info: |
|
|||||||
features: [Proxy]
|
features: [Proxy]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
// Defer proxy revocation until after the `constructor` property has been
|
// Defer proxy revocation until after the `constructor` property has been
|
||||||
// accessed
|
// accessed
|
||||||
var handlers = {
|
var handlers = {
|
||||||
|
@ -17,7 +17,7 @@ info: |
|
|||||||
features: [class]
|
features: [class]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var C = $.createRealm().global.eval(
|
var C = $262.createRealm().global.eval(
|
||||||
'0, class extends Object {' +
|
'0, class extends Object {' +
|
||||||
' constructor() {' +
|
' constructor() {' +
|
||||||
' return null;' +
|
' return null;' +
|
||||||
|
@ -18,7 +18,7 @@ info: |
|
|||||||
features: [class]
|
features: [class]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var C = $.createRealm().global.eval(
|
var C = $262.createRealm().global.eval(
|
||||||
'(class C extends Object {' +
|
'(class C extends Object {' +
|
||||||
' constructor() {}' +
|
' constructor() {}' +
|
||||||
'});'
|
'});'
|
||||||
|
@ -29,7 +29,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ info: |
|
|||||||
b. Return ? GetFunctionRealm(target).
|
b. Return ? GetFunctionRealm(target).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
var B = Function.prototype.bind.call(C);
|
var B = Function.prototype.bind.call(C);
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ features: [Reflect]
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var OtherGeneratorFunction = Object.getPrototypeOf(
|
var OtherGeneratorFunction = Object.getPrototypeOf(
|
||||||
other.eval('(0, function* () {})')
|
other.eval('(0, function* () {})')
|
||||||
).constructor;
|
).constructor;
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ info: |
|
|||||||
8. Return ? Call(trap, handler, « target, thisArgument, argArray »).
|
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; } })'
|
'new Proxy(function() {}, { apply: function(_, __, args) { return args; } })'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ description: >
|
|||||||
context)
|
context)
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy(function() {}, {
|
var p = new OProxy(function() {}, {
|
||||||
apply: {}
|
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; } })'
|
'new Proxy(function() {}, { construct: function(_, args) { return args; } })'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ description: >
|
|||||||
context)
|
context)
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy(function() {}, {
|
var p = new OProxy(function() {}, {
|
||||||
construct: {}
|
construct: {}
|
||||||
});
|
});
|
||||||
|
@ -23,7 +23,7 @@ info: >
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ info: |
|
|||||||
11. Return obj.
|
11. Return obj.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var desc;
|
var desc;
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
defineProperty: function(_, __, _desc) {
|
defineProperty: function(_, __, _desc) {
|
||||||
|
@ -12,7 +12,7 @@ info: |
|
|||||||
3. If handler is null, throw a TypeError exception.
|
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), {});
|
var p = OProxy.revocable(Object.create(null), {});
|
||||||
|
|
||||||
p.revoke();
|
p.revoke();
|
||||||
|
@ -17,7 +17,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var target = Object.create(null);
|
var target = Object.create(null);
|
||||||
var p = new OProxy(target, {
|
var p = new OProxy(target, {
|
||||||
defineProperty: function() {
|
defineProperty: function() {
|
||||||
|
@ -16,7 +16,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var target = Object.create(null);
|
var target = Object.create(null);
|
||||||
var p = new OProxy(target, {
|
var p = new OProxy(target, {
|
||||||
defineProperty: function() {
|
defineProperty: function() {
|
||||||
|
@ -17,7 +17,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var target = Object.create(null);
|
var target = Object.create(null);
|
||||||
var p = new OProxy(target, {
|
var p = new OProxy(target, {
|
||||||
defineProperty: function() {
|
defineProperty: function() {
|
||||||
|
@ -17,7 +17,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var target = Object.create(null);
|
var target = Object.create(null);
|
||||||
var p = new OProxy(target, {
|
var p = new OProxy(target, {
|
||||||
defineProperty: function() {
|
defineProperty: function() {
|
||||||
|
@ -16,7 +16,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var target = Object.create(null);
|
var target = Object.create(null);
|
||||||
var p = new OProxy(target, {
|
var p = new OProxy(target, {
|
||||||
defineProperty: function() {
|
defineProperty: function() {
|
||||||
|
@ -19,7 +19,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
defineProperty: {}
|
defineProperty: {}
|
||||||
});
|
});
|
||||||
|
@ -17,7 +17,7 @@ info: |
|
|||||||
5. If IsCallable(func) is false, throw a TypeError exception.
|
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({}, {
|
var p = new OProxy({}, {
|
||||||
deleteProperty: {}
|
deleteProperty: {}
|
||||||
});
|
});
|
||||||
|
@ -18,7 +18,7 @@ info: |
|
|||||||
c. Return ? GetFunctionRealm(proxyTarget).
|
c. Return ? GetFunctionRealm(proxyTarget).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
// Ensure that the proxy does not report a `prototype` property
|
// Ensure that the proxy does not report a `prototype` property
|
||||||
var P = new Proxy(C, { get: function() {} });
|
var P = new Proxy(C, { get: function() {} });
|
||||||
|
@ -17,7 +17,7 @@ info: |
|
|||||||
5. If IsCallable(func) is false, throw a TypeError exception.
|
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({}, {
|
var p = new OProxy({}, {
|
||||||
get: {}
|
get: {}
|
||||||
});
|
});
|
||||||
|
@ -12,7 +12,7 @@ info: |
|
|||||||
exception.
|
exception.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
|
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
getOwnPropertyDescriptor: function() { return null; }
|
getOwnPropertyDescriptor: function() { return null; }
|
||||||
|
@ -22,7 +22,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
getOwnPropertyDescriptor: {}
|
getOwnPropertyDescriptor: {}
|
||||||
});
|
});
|
||||||
|
@ -8,7 +8,7 @@ description: >
|
|||||||
context)
|
context)
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
getPrototypeOf: {}
|
getPrototypeOf: {}
|
||||||
});
|
});
|
||||||
|
@ -19,7 +19,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
has: {}
|
has: {}
|
||||||
});
|
});
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
isExtensible: {}
|
isExtensible: {}
|
||||||
});
|
});
|
||||||
|
@ -20,7 +20,7 @@ info: |
|
|||||||
features: [Symbol]
|
features: [Symbol]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var p = new other.Proxy({}, {
|
var p = new other.Proxy({}, {
|
||||||
ownKeys: function() {
|
ownKeys: function() {
|
||||||
return undefined;
|
return undefined;
|
||||||
|
@ -17,7 +17,7 @@ info: |
|
|||||||
5. If IsCallable(func) is false, throw a TypeError exception.
|
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}, {
|
var p = new OProxy({attr:1}, {
|
||||||
ownKeys: {}
|
ownKeys: {}
|
||||||
});
|
});
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
preventExtensions: {}
|
preventExtensions: {}
|
||||||
});
|
});
|
||||||
|
@ -17,7 +17,7 @@ info: |
|
|||||||
5. If IsCallable(func) is false, throw a TypeError exception.
|
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({}, {
|
var p = new OProxy({}, {
|
||||||
set: {}
|
set: {}
|
||||||
});
|
});
|
||||||
|
@ -22,7 +22,7 @@ info: |
|
|||||||
...
|
...
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OProxy = $.createRealm().global.Proxy;
|
var OProxy = $262.createRealm().global.Proxy;
|
||||||
var p = new OProxy({}, {
|
var p = new OProxy({}, {
|
||||||
setPrototypeOf: {}
|
setPrototypeOf: {}
|
||||||
});
|
});
|
||||||
|
@ -22,7 +22,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ info: >
|
|||||||
features: [Symbol.species]
|
features: [Symbol.species]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
other.shared = null;
|
other.shared = null;
|
||||||
var C = new other.Function('shared = this; return /./;');
|
var C = new other.Function('shared = this; return /./;');
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ info: >
|
|||||||
initialized as a new empty List.
|
initialized as a new empty List.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
var parent = Symbol.for('parent');
|
var parent = Symbol.for('parent');
|
||||||
var child = OSymbol.for('child');
|
var child = OSymbol.for('child');
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.hasInstance]
|
features: [Symbol.hasInstance]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.hasInstance, OSymbol.hasInstance);
|
assert.sameValue(Symbol.hasInstance, OSymbol.hasInstance);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.isConcatSpreadable]
|
features: [Symbol.isConcatSpreadable]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.isConcatSpreadable, OSymbol.isConcatSpreadable);
|
assert.sameValue(Symbol.isConcatSpreadable, OSymbol.isConcatSpreadable);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.iterator]
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.iterator, OSymbol.iterator);
|
assert.sameValue(Symbol.iterator, OSymbol.iterator);
|
||||||
|
@ -10,7 +10,7 @@ info: >
|
|||||||
initialized as a new empty List.
|
initialized as a new empty List.
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
var parent = Symbol.for('parent');
|
var parent = Symbol.for('parent');
|
||||||
var child = OSymbol.for('child');
|
var child = OSymbol.for('child');
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.match]
|
features: [Symbol.match]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.match, OSymbol.match);
|
assert.sameValue(Symbol.match, OSymbol.match);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.replace]
|
features: [Symbol.replace]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.replace, OSymbol.replace);
|
assert.sameValue(Symbol.replace, OSymbol.replace);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.search]
|
features: [Symbol.search]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.search, OSymbol.search);
|
assert.sameValue(Symbol.search, OSymbol.search);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.species]
|
features: [Symbol.species]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.species, OSymbol.species);
|
assert.sameValue(Symbol.species, OSymbol.species);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.split]
|
features: [Symbol.split]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.split, OSymbol.split);
|
assert.sameValue(Symbol.split, OSymbol.split);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.split]
|
features: [Symbol.split]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.split, OSymbol.split);
|
assert.sameValue(Symbol.split, OSymbol.split);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.toStringTag]
|
features: [Symbol.toStringTag]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.toStringTag, OSymbol.toStringTag);
|
assert.sameValue(Symbol.toStringTag, OSymbol.toStringTag);
|
||||||
|
@ -10,6 +10,6 @@ info: >
|
|||||||
features: [Symbol.unscopables]
|
features: [Symbol.unscopables]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var OSymbol = $.createRealm().global.Symbol;
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
assert.sameValue(Symbol.unscopables, OSymbol.unscopables);
|
assert.sameValue(Symbol.unscopables, OSymbol.unscopables);
|
||||||
|
@ -11,7 +11,7 @@ info: >
|
|||||||
object that is defined once for each realm.
|
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 localArgs = function(){ "use strict"; return arguments; }();
|
||||||
var otherArgs = (new other.Function('return arguments;'))();
|
var otherArgs = (new other.Function('return arguments;'))();
|
||||||
var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get;
|
var localThrowTypeError = Object.getOwnPropertyDescriptor(localArgs, "callee").get;
|
||||||
|
@ -26,7 +26,7 @@ includes: [testTypedArray.js]
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ includes: [testTypedArray.js, detachArrayBuffer.js]
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var desc = {
|
var desc = {
|
||||||
value: 0,
|
value: 0,
|
||||||
configurable: false,
|
configurable: false,
|
||||||
|
@ -17,7 +17,7 @@ info: >
|
|||||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
var OtherTA = other[TA.name];
|
var OtherTA = other[TA.name];
|
||||||
|
@ -24,7 +24,7 @@ info: >
|
|||||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
var OtherTA = other[TA.name];
|
var OtherTA = other[TA.name];
|
||||||
|
@ -19,7 +19,7 @@ features: [Reflect]
|
|||||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
var OtherTA = other[TA.name];
|
var OtherTA = other[TA.name];
|
||||||
|
@ -25,7 +25,7 @@ info: >
|
|||||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
var OtherTA = other[TA.name];
|
var OtherTA = other[TA.name];
|
||||||
|
@ -25,7 +25,7 @@ includes: [testTypedArray.js]
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ includes: [testTypedArray.js]
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ includes: [testTypedArray.js]
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ features: [Symbol.species]
|
|||||||
|
|
||||||
var sample1 = new Int8Array();
|
var sample1 = new Int8Array();
|
||||||
var sample2 = new Int16Array();
|
var sample2 = new Int16Array();
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ includes: [testTypedArray.js]
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ includes: [testTypedArray.js]
|
|||||||
features: [Symbol.species]
|
features: [Symbol.species]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ info: |
|
|||||||
features: [Reflect]
|
features: [Reflect]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var C = new other.Function();
|
var C = new other.Function();
|
||||||
C.prototype = null;
|
C.prototype = null;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ info: |
|
|||||||
strictEval).
|
strictEval).
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var other = $.createRealm().global;
|
var other = $262.createRealm().global;
|
||||||
var otherEval = other.eval;
|
var otherEval = other.eval;
|
||||||
|
|
||||||
otherEval('var x = 23;');
|
otherEval('var x = 23;');
|
||||||
|
@ -17,7 +17,7 @@ var x = 'outside';
|
|||||||
var result;
|
var result;
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var eval = $.createRealm().global.eval;
|
var eval = $262.createRealm().global.eval;
|
||||||
|
|
||||||
eval('var x = "inside";');
|
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 g = other.eval('(0, function*() {})');
|
||||||
var GeneratorPrototype = Object.getPrototypeOf(g.prototype);
|
var GeneratorPrototype = Object.getPrototypeOf(g.prototype);
|
||||||
g.prototype = null;
|
g.prototype = null;
|
||||||
|
@ -18,7 +18,7 @@ info: |
|
|||||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
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');
|
assert.sameValue(typeof otherParseInt, 'function');
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user