2015-03-17 18:50:15 +01:00
|
|
|
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
description: >
|
|
|
|
`yield` is a reserved identifier in strict mode code and may not be used
|
|
|
|
as a label.
|
|
|
|
es6id: 12.1.1
|
2016-01-31 00:57:28 +01:00
|
|
|
negative:
|
|
|
|
phase: early
|
|
|
|
type: SyntaxError
|
2015-03-17 18:50:15 +01:00
|
|
|
flags: [onlyStrict]
|
|
|
|
---*/
|
|
|
|
|
2017-04-29 22:31:08 +02:00
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
|
2015-03-17 18:50:15 +01:00
|
|
|
yield: 1;
|