summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.11_Error_Objects/15.11.4_Properties_of_the_Error_Prototype_Object/S15.11.4_A4.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.11_Error_Objects/15.11.4_Properties_of_the_Error_Prototype_Object/S15.11.4_A4.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.11_Error_Objects/15.11.4_Properties_of_the_Error_Prototype_Object/S15.11.4_A4.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.11_Error_Objects/15.11.4_Properties_of_the_Error_Prototype_Object/S15.11.4_A4.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.11_Error_Objects/15.11.4_Properties_of_the_Error_Prototype_Object/S15.11.4_A4.js
new file mode 100644
index 000000000..d683edc2b
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.11_Error_Objects/15.11.4_Properties_of_the_Error_Prototype_Object/S15.11.4_A4.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.11.4_A4;
+* @section: 15.11.4, 16;
+* @assertion: Since Error prototype object is not function it has not [[create]] method;
+* @description: Checking if creating "new Error.prototype" fails;
+*/
+
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#1
+try {
+ __instance = new Object.prototype;
+ $FAIL('#1: "__instance = new Object.prototype" lead to throwing exception');
+} catch (e) {}
+//
+//////////////////////////////////////////////////////////////////////////////