mirror of
https://github.com/tc39/test262.git
synced 2025-07-03 04:04:42 +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
362 B
JavaScript
16 lines
362 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:
|
|
do Statement while ( Expression )
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
$DONOTEVALUATE();
|
|
do function g() {} while (false)
|
|
|