mirror of
https://github.com/tc39/test262.git
synced 2025-07-04 04:34:45 +02:00
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.
16 lines
345 B
JavaScript
16 lines
345 B
JavaScript
// Copyright (C) 2011 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
es6id: 13.1
|
|
description: >
|
|
function declarations in statement position:
|
|
for ( ;;) Statement
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
$DONOTEVALUATE();
|
|
for (;false;) function g() {}
|
|
|