mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add test for strict mode of module code
This commit is contained in:
parent
5006055c99
commit
82abd59f35
12
test/language/module-code/strict-mode.js
Normal file
12
test/language/module-code/strict-mode.js
Normal file
@ -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…
x
Reference in New Issue
Block a user