mirror of https://github.com/tc39/test262.git
17 lines
477 B
JavaScript
17 lines
477 B
JavaScript
// 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: >
|
|
import.meta is not allowed in direct eval in module code.
|
|
info: |
|
|
It is an early Syntax Error if Module is not the syntactic goal symbol.
|
|
flags: [module]
|
|
features: [import.meta]
|
|
---*/
|
|
|
|
assert.throws(SyntaxError, function() {
|
|
eval("import.meta");
|
|
});
|