mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 15:04:43 +02:00
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»).
|
i. Let funcResult be Call(callbackfn, T, «e.[[value]], e.[[key]], M»).
|
||||||
ii. ReturnIfAbrupt(funcResult).
|
ii. ReturnIfAbrupt(funcResult).
|
||||||
...
|
...
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var map = new Map([[0, 0]]);
|
var map = new Map([[0, 0]]);
|
||||||
|
@ -4,10 +4,8 @@
|
|||||||
/*---
|
/*---
|
||||||
es5id: 10.2.1.1.3-4-22-s
|
es5id: 10.2.1.1.3-4-22-s
|
||||||
description: >
|
description: >
|
||||||
Strict Mode - TypeError is not thrown when changing the value of
|
TypeError is not thrown when changing the value of the Constructor Properties
|
||||||
the Constructor Properties of the Global Object under strict mode
|
of the Global Object
|
||||||
(Object)
|
|
||||||
flags: [onlyStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var objBak = Object;
|
var objBak = Object;
|
@ -4,10 +4,8 @@
|
|||||||
/*---
|
/*---
|
||||||
es5id: 10.2.1.1.3-4-27-s
|
es5id: 10.2.1.1.3-4-27-s
|
||||||
description: >
|
description: >
|
||||||
Strict Mode - TypeError is not thrown when changing the value of
|
TypeError is not thrown when changing the value of the Constructor Properties
|
||||||
the Constructor Properties of the Global Object under strict mode
|
of the Global Object (Number)
|
||||||
(Number)
|
|
||||||
flags: [onlyStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var numBak = Number;
|
var numBak = Number;
|
@ -3,11 +3,9 @@
|
|||||||
|
|
||||||
/*---
|
/*---
|
||||||
description: >
|
description: >
|
||||||
`yield` is a valid BindingIdentifier for GeneratorMethods outside of
|
`yield` is a valid BindingIdentifier for GeneratorMethods
|
||||||
strict mode.
|
|
||||||
features: [generators]
|
features: [generators]
|
||||||
es6id: 12.1.1
|
es6id: 12.1.1
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var iter, result;
|
var iter, result;
|
||||||
|
@ -4,9 +4,8 @@
|
|||||||
/*---
|
/*---
|
||||||
es5id: 11.3.1-2-3-s
|
es5id: 11.3.1-2-3-s
|
||||||
description: >
|
description: >
|
||||||
Strict Mode - SyntaxError is not thrown if the identifier
|
SyntaxError is not thrown if the identifier 'arguments[...]' appears as a
|
||||||
'arguments[...]' appears as a PostfixExpression(arguments++)
|
PostfixExpression(arguments++)
|
||||||
flags: [onlyStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
@ -3,10 +3,7 @@
|
|||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 11.1.1-1gs
|
es5id: 11.1.1-1gs
|
||||||
description: Strict Mode - 'this' object at the global scope is not undefined
|
description: the 'this' object at the global scope is not undefined
|
||||||
flags: [onlyStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
assert.notSameValue(this, undefined);
|
assert.notSameValue(this, undefined);
|
@ -7,7 +7,6 @@ info: |
|
|||||||
constructors, return the object
|
constructors, return the object
|
||||||
es5id: 11.1.1_A3.2
|
es5id: 11.1.1_A3.2
|
||||||
description: Create function. It have property, that returned "this"
|
description: Create function. It have property, that returned "this"
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user