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
|
||||
description: >
|
||||
function declarations in statement position in strict mode:
|
||||
function declarations in statement position:
|
||||
do Statement while ( Expression )
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
/*---
|
||||
es6id: 13.1
|
||||
description: >
|
||||
function declarations in statement position in strict mode:
|
||||
function declarations in statement position:
|
||||
for ( ;;) Statement
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
/*---
|
||||
es6id: 13.1
|
||||
description: >
|
||||
function declarations in statement position in strict mode:
|
||||
function declarations in statement position:
|
||||
while ( Expression ) Statement
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
|
Loading…
Reference in New Issue