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

View File

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

View File

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