From 82abd59f359dc538bdf4bce0836c1d7297c20e7f Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Thu, 18 Feb 2016 16:20:25 -0500 Subject: [PATCH] Add test for strict mode of module code --- test/language/module-code/strict-mode.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/language/module-code/strict-mode.js diff --git a/test/language/module-code/strict-mode.js b/test/language/module-code/strict-mode.js new file mode 100644 index 0000000000..7b31b38b0f --- /dev/null +++ b/test/language/module-code/strict-mode.js @@ -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;