mirror of https://github.com/tc39/test262.git
Improve coverage: function declarations
Previously, these tests were limited to strict mode. The syntactic restriction under test also applied outside of strict mode even when Annex B is observed, so configure the tests to also run outside of strict mode.
This commit is contained in:
parent
9cd62ffbd7
commit
d4a91a163b
|
@ -3,12 +3,11 @@
|
||||||
/*---
|
/*---
|
||||||
es6id: 13.1
|
es6id: 13.1
|
||||||
description: >
|
description: >
|
||||||
function declarations in statement position in strict mode:
|
function declarations in statement position:
|
||||||
do Statement while ( Expression )
|
do Statement while ( Expression )
|
||||||
negative:
|
negative:
|
||||||
phase: parse
|
phase: parse
|
||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
flags: [onlyStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
|
@ -3,12 +3,11 @@
|
||||||
/*---
|
/*---
|
||||||
es6id: 13.1
|
es6id: 13.1
|
||||||
description: >
|
description: >
|
||||||
function declarations in statement position in strict mode:
|
function declarations in statement position:
|
||||||
for ( ;;) Statement
|
for ( ;;) Statement
|
||||||
negative:
|
negative:
|
||||||
phase: parse
|
phase: parse
|
||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
flags: [onlyStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
|
@ -3,12 +3,11 @@
|
||||||
/*---
|
/*---
|
||||||
es6id: 13.1
|
es6id: 13.1
|
||||||
description: >
|
description: >
|
||||||
function declarations in statement position in strict mode:
|
function declarations in statement position:
|
||||||
while ( Expression ) Statement
|
while ( Expression ) Statement
|
||||||
negative:
|
negative:
|
||||||
phase: parse
|
phase: parse
|
||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
flags: [onlyStrict]
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
Loading…
Reference in New Issue