summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A7.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A7.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A7.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A7.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A7.js
new file mode 100644
index 000000000..f80dd6976
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.2_Object_Objects/15.2.4_Properties_of_the_Object_Prototype_Object/15.2.4.3_Object.prototype.toLocaleString/S15.2.4.3_A7.js
@@ -0,0 +1,19 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+* @name: S15.2.4.3_A7;
+* @section: 15.2.4.3, 13.2;
+* @assertion: Object.prototype.toLocaleString can't be used as a constructor;
+* @description: Checking if creating "new Object.prototype.toLocaleString" fails;
+*/
+
+var FACTORY = Object.prototype.toLocaleString;
+
+try {
+ instance = new FACTORY;
+ $FAIL('#1: Object.prototype.toLocaleString can\'t be used as a constructor');
+} catch (e) {
+ $PRINT(e);
+
+}