summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/parse-err-decl-pos-import-class-expr-meth-gen.js
blob: abe2e0a5bc45a3f3b0452191e8b1ee2127e478d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |reftest| error:SyntaxError module
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Expression cannot contain an `import` declaration
esid: sec-modules
negative:
  phase: parse
  type: SyntaxError
flags: [module]
features: [generators]
---*/

$DONOTEVALUATE();

(class { *method() { import v from './decl-pos-import-class-expr-meth-gen.js'; } });