mirror of
https://github.com/tc39/test262.git
synced 2025-09-26 03:28:50 +02:00
Remove 'use strict' directive from onlyStrict tests
This commit is contained in:
parent
7b1eabb793
commit
1cd8f45b27
@ -8,7 +8,6 @@ description: |
|
|||||||
pending
|
pending
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(String.prototype, "toLocaleString", {
|
Object.defineProperty(String.prototype, "toLocaleString", {
|
||||||
get() {
|
get() {
|
||||||
@ -19,4 +18,3 @@ Object.defineProperty(String.prototype, "toLocaleString", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
assert.sameValue(["test"].toLocaleString(), "string");
|
assert.sameValue(["test"].toLocaleString(), "string");
|
||||||
|
|
||||||
|
@ -8,7 +8,8 @@ description: |
|
|||||||
pending
|
pending
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict"; // Use strict-mode to ensure |this| arguments aren't converted to objects.
|
|
||||||
|
// strict-mode to ensure |this| arguments aren't converted to objects.
|
||||||
|
|
||||||
var emptyIterator = {
|
var emptyIterator = {
|
||||||
next() {
|
next() {
|
||||||
@ -30,4 +31,3 @@ Object.defineProperty(Number.prototype, Symbol.iterator, {
|
|||||||
Promise.all(0);
|
Promise.all(0);
|
||||||
Promise.allSettled(0);
|
Promise.allSettled(0);
|
||||||
Promise.race(0);
|
Promise.race(0);
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ description: |
|
|||||||
pending
|
pending
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var y = new Proxy({}, {
|
var y = new Proxy({}, {
|
||||||
getOwnPropertyDescriptor(target, key) {
|
getOwnPropertyDescriptor(target, key) {
|
||||||
@ -28,4 +27,3 @@ var y = new Proxy({}, {
|
|||||||
// This will invoke [[Set]] on the target, with the proxy as receiver.
|
// This will invoke [[Set]] on the target, with the proxy as receiver.
|
||||||
assert.throws(TypeError, () => y.a = 1);
|
assert.throws(TypeError, () => y.a = 1);
|
||||||
assert.throws(TypeError, () => y.b = 2);
|
assert.throws(TypeError, () => y.b = 2);
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ description: |
|
|||||||
pending
|
pending
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
// Seal
|
// Seal
|
||||||
assert.sameValue(Object.isSealed(new Int32Array(2)), false);
|
assert.sameValue(Object.isSealed(new Int32Array(2)), false);
|
||||||
@ -54,4 +53,3 @@ array = new Int32Array(1);
|
|||||||
assert.throws(TypeError, () => Object.freeze(array));
|
assert.throws(TypeError, () => Object.freeze(array));
|
||||||
assert.sameValue(Object.isExtensible(array), false);
|
assert.sameValue(Object.isExtensible(array), false);
|
||||||
assert.sameValue(Object.isFrozen(array), false);
|
assert.sameValue(Object.isFrozen(array), false);
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ description: |
|
|||||||
eval in all its myriad flavors
|
eval in all its myriad flavors
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var x = 17;
|
var x = 17;
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ description: |
|
|||||||
eval in all its myriad flavors
|
eval in all its myriad flavors
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var x = 17;
|
var x = 17;
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ description: |
|
|||||||
eval in all its myriad flavors
|
eval in all its myriad flavors
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var x = 17;
|
var x = 17;
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ description: |
|
|||||||
eval in all its myriad flavors
|
eval in all its myriad flavors
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var x = 17;
|
var x = 17;
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ description: |
|
|||||||
Verify that we don't optimize free names to gnames in eval code that's global, when the name refers to a binding introduced by a strict mode eval frame
|
Verify that we don't optimize free names to gnames in eval code that's global, when the name refers to a binding introduced by a strict mode eval frame
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
var x = "global";
|
var x = "global";
|
||||||
assert.sameValue(eval('var x = "eval"; eval("x")'), "eval");
|
assert.sameValue(eval('var x = "eval"; eval("x")'), "eval");
|
||||||
|
@ -10,7 +10,6 @@ description: |
|
|||||||
|delete window.NaN| should throw a TypeError
|
|delete window.NaN| should throw a TypeError
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict"
|
|
||||||
|
|
||||||
var g = this, v = false;
|
var g = this, v = false;
|
||||||
try
|
try
|
||||||
|
@ -8,7 +8,6 @@ description: |
|
|||||||
pending
|
pending
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict"
|
|
||||||
|
|
||||||
var log = "";
|
var log = "";
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ description: |
|
|||||||
pending
|
pending
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(String.prototype, "toString", {
|
Object.defineProperty(String.prototype, "toString", {
|
||||||
get() {
|
get() {
|
||||||
@ -18,4 +17,3 @@ Object.defineProperty(String.prototype, "toString", {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
assert.sameValue(Object.prototype.toLocaleString.call("test"), "string");
|
assert.sameValue(Object.prototype.toLocaleString.call("test"), "string");
|
||||||
|
|
||||||
|
@ -10,9 +10,8 @@ description: |
|
|||||||
pending
|
pending
|
||||||
esid: pending
|
esid: pending
|
||||||
---*/
|
---*/
|
||||||
"use strict";
|
|
||||||
assert.throws(
|
assert.throws(
|
||||||
SyntaxError,
|
SyntaxError,
|
||||||
() => eval("(function() { eval(); function eval() {} })")
|
() => eval("(function() { eval(); function eval() {} })")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user