mirror of https://github.com/tc39/test262.git
Improve coverage
The modified tests are equally valid in strict mode and outside of strict mode. Remove the flag which limits their use to only one of these two contexts. Rename tests using the legacy ES5-based naming scheme to remove the pattern which designates strict mode.
This commit is contained in:
parent
32bb36f5e4
commit
f5d60d4192
|
@ -16,7 +16,6 @@ info: |
|
|||
i. Let funcResult be Call(callbackfn, T, «e.[[value]], e.[[key]], M»).
|
||||
ii. ReturnIfAbrupt(funcResult).
|
||||
...
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var map = new Map([[0, 0]]);
|
||||
|
|
|
@ -4,10 +4,8 @@
|
|||
/*---
|
||||
es5id: 10.2.1.1.3-4-22-s
|
||||
description: >
|
||||
Strict Mode - TypeError is not thrown when changing the value of
|
||||
the Constructor Properties of the Global Object under strict mode
|
||||
(Object)
|
||||
flags: [onlyStrict]
|
||||
TypeError is not thrown when changing the value of the Constructor Properties
|
||||
of the Global Object
|
||||
---*/
|
||||
|
||||
var objBak = Object;
|
|
@ -4,10 +4,8 @@
|
|||
/*---
|
||||
es5id: 10.2.1.1.3-4-27-s
|
||||
description: >
|
||||
Strict Mode - TypeError is not thrown when changing the value of
|
||||
the Constructor Properties of the Global Object under strict mode
|
||||
(Number)
|
||||
flags: [onlyStrict]
|
||||
TypeError is not thrown when changing the value of the Constructor Properties
|
||||
of the Global Object (Number)
|
||||
---*/
|
||||
|
||||
var numBak = Number;
|
|
@ -3,11 +3,9 @@
|
|||
|
||||
/*---
|
||||
description: >
|
||||
`yield` is a valid BindingIdentifier for GeneratorMethods outside of
|
||||
strict mode.
|
||||
`yield` is a valid BindingIdentifier for GeneratorMethods
|
||||
features: [generators]
|
||||
es6id: 12.1.1
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
/*---
|
||||
es5id: 11.3.1-2-3-s
|
||||
description: >
|
||||
Strict Mode - SyntaxError is not thrown if the identifier
|
||||
'arguments[...]' appears as a PostfixExpression(arguments++)
|
||||
flags: [onlyStrict]
|
||||
SyntaxError is not thrown if the identifier 'arguments[...]' appears as a
|
||||
PostfixExpression(arguments++)
|
||||
---*/
|
||||
|
||||
function testcase() {
|
|
@ -3,10 +3,7 @@
|
|||
|
||||
/*---
|
||||
es5id: 11.1.1-1gs
|
||||
description: Strict Mode - 'this' object at the global scope is not undefined
|
||||
flags: [onlyStrict]
|
||||
description: the 'this' object at the global scope is not undefined
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
||||
assert.notSameValue(this, undefined);
|
|
@ -7,7 +7,6 @@ info: |
|
|||
constructors, return the object
|
||||
es5id: 11.1.1_A3.2
|
||||
description: Create function. It have property, that returned "this"
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
Loading…
Reference in New Issue