summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/types/object/S8.6.2_A7.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/types/object/S8.6.2_A7.js')
-rw-r--r--js/src/tests/test262/language/types/object/S8.6.2_A7.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/types/object/S8.6.2_A7.js b/js/src/tests/test262/language/types/object/S8.6.2_A7.js
new file mode 100644
index 0000000000..32ded83824
--- /dev/null
+++ b/js/src/tests/test262/language/types/object/S8.6.2_A7.js
@@ -0,0 +1,16 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: |
+ Objects that implement internal method [[Construct]] are called
+ constructors. Math object is NOT constructor
+es5id: 8.6.2_A7
+description: Checking if execution of "var objMath=new Math" passes
+---*/
+
+assert.throws(TypeError, function() {
+ var objMath=new Math;
+});
+
+reportCompare(0, 0);