mirror of https://github.com/tc39/test262.git
Add test for strict mode of module code
This commit is contained in:
parent
5006055c99
commit
82abd59f35
|
@ -0,0 +1,12 @@
|
||||||
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
description: Module code is always strict mode code.
|
||||||
|
es6id: 10.2.1
|
||||||
|
id: sec-strict-mode-code
|
||||||
|
flags: [module]
|
||||||
|
negative: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
$ERROR('This statement should not be executed.');
|
||||||
|
var public;
|
Loading…
Reference in New Issue