summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/function/13.0_4-17gs-strict.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/statements/function/13.0_4-17gs-strict.js')
-rw-r--r--js/src/tests/test262/language/statements/function/13.0_4-17gs-strict.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/statements/function/13.0_4-17gs-strict.js b/js/src/tests/test262/language/statements/function/13.0_4-17gs-strict.js
new file mode 100644
index 0000000000..903001cf8b
--- /dev/null
+++ b/js/src/tests/test262/language/statements/function/13.0_4-17gs-strict.js
@@ -0,0 +1,15 @@
+'use strict';
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+es5id: 13.0_4-17gs
+description: >
+ Strict Mode - SourceElements is not evaluated as strict mode code
+ when a Function constructor is contained in strict mode code
+flags: [onlyStrict]
+---*/
+
+var _13_0_4_17_fun = new Function('eval = 42;');
+
+reportCompare(0, 0);