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:
Mike Pennisi 2019-09-24 16:45:56 -04:00
parent 9cd62ffbd7
commit d4a91a163b
3 changed files with 3 additions and 6 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();