mirror of
https://github.com/tc39/test262.git
synced 2025-09-25 19:18:48 +02:00
Enable strict mode testing for sm/misc
This commit is contained in:
parent
10f049068e
commit
a216e703d1
@ -2,14 +2,14 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
---*/
|
||||
if (typeof window === "undefined")
|
||||
window = this;
|
||||
|
||||
if (typeof window === "undefined") {
|
||||
var window = this;
|
||||
}
|
||||
|
||||
Object.defineProperty(window, "foo", {
|
||||
get: function() { return 5; },
|
||||
@ -18,4 +18,3 @@ Object.defineProperty(window, "foo", {
|
||||
|
||||
for (var i = 0; i < 100; ++i)
|
||||
assert.sameValue(window.foo, 5);
|
||||
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
ECMAScript built-in methods that immediately throw when |this| is |undefined| or |null| (due to CheckObjectCoercible, ToObject, or ToString)
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
JS_EnumerateStandardClasses uses wrong attributes for undefined
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
Properly handle explicitly-undefined optional arguments to a bunch of functions
|
||||
esid: pending
|
||||
|
@ -2,17 +2,16 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
---*/
|
||||
|
||||
if (typeof window === "undefined") {
|
||||
// This test is meant to run in the browser, but it's easy to
|
||||
// run it in the shell as well, even though it has no inner/outer
|
||||
// windows.
|
||||
window = this;
|
||||
var window = this;
|
||||
}
|
||||
|
||||
var res = false;
|
||||
@ -27,4 +26,3 @@ Object.defineProperty(this, "foo", {configurable: true,
|
||||
assert.sameValue(window.foo, true, "getter");
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR must match the LineTerminator production when parsing code
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
|var| statements for existing, read-only/permanent properties should not be errors
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
Syntax errors at the end of |for| statement header parts shouldn't cause crashes
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
|
@ -4,8 +4,6 @@
|
||||
*/
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
|
@ -2,8 +2,6 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
flags:
|
||||
- noStrict
|
||||
description: |
|
||||
pending
|
||||
esid: pending
|
||||
|
Loading…
x
Reference in New Issue
Block a user