Add test for strict mode of module code

This commit is contained in:
Mike Pennisi 2016-02-18 16:20:25 -05:00
parent 5006055c99
commit 82abd59f35
1 changed files with 12 additions and 0 deletions

View 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;