Source code
Revision control
Copy as Markdown
Other Tools
// |reftest| error:SyntaxError
// Copyright (C) 2018 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-left-hand-side-expressions-static-semantics-early-errors
description: >
An early Syntax Error is thrown when the syntactic goal symbol is Script.
info: |
It is an early Syntax Error if Module is not the syntactic goal symbol.
negative:
phase: parse
type: SyntaxError
features: [import.meta]
---*/
$DONOTEVALUATE();
import.meta;