blob: 75ad6bc614d6199cfcead58da223959ceb2ec556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// |reftest| error:SyntaxError
'use strict';
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-labelled-statements
es6id: 13.13
description: >
function declarations in statement position in strict mode:
label: Statement
flags: [onlyStrict]
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
label: function g() {}
|