2015-03-30 18:48:02 +02:00
|
|
|
// Copyright (C) 2011 the V8 project authors. All rights reserved.
|
2015-02-26 20:13:00 +01:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
2016-03-11 01:35:14 +01:00
|
|
|
esid: sec-labelled-statements
|
|
|
|
es6id: 13.13
|
2015-02-26 20:13:00 +01:00
|
|
|
description: >
|
|
|
|
function declarations in statement position in strict mode:
|
|
|
|
label: Statement
|
2015-04-27 16:56:19 +02:00
|
|
|
flags: [onlyStrict]
|
2016-01-31 00:57:28 +01:00
|
|
|
negative:
|
|
|
|
phase: early
|
|
|
|
type: SyntaxError
|
2015-02-26 20:13:00 +01:00
|
|
|
---*/
|
|
|
|
|
2017-04-29 22:31:08 +02:00
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
|
2016-03-11 01:35:14 +01:00
|
|
|
label: function g() {}
|