2016-03-29 17:49:29 +02:00
|
|
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
description: Early ReferenceError resulting from module parsing
|
|
|
|
esid: sec-parsemodule
|
2016-05-28 21:42:19 +02:00
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2016-05-28 21:42:19 +02:00
|
|
|
type: ReferenceError
|
2016-03-29 17:49:29 +02:00
|
|
|
info: |
|
|
|
|
[...]
|
|
|
|
2. Parse sourceText using Module as the goal symbol and analyze the parse
|
|
|
|
result for any Early Error conditions. If the parse was successful and
|
|
|
|
no early errors were found, let body be the resulting parse tree.
|
|
|
|
Otherwise, let body be a List of one or more SyntaxError or
|
|
|
|
ReferenceError objects representing the parsing errors and/or early
|
|
|
|
errors.
|
|
|
|
flags: [module]
|
|
|
|
---*/
|
|
|
|
|
2017-04-29 22:31:08 +02:00
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
|
2016-03-29 17:49:29 +02:00
|
|
|
1++;
|