summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/prototype/toString/no-prototype-property.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/prototype/toString/no-prototype-property.js')
-rw-r--r--js/src/tests/test262/built-ins/Object/prototype/toString/no-prototype-property.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Object/prototype/toString/no-prototype-property.js b/js/src/tests/test262/built-ins/Object/prototype/toString/no-prototype-property.js
new file mode 100644
index 0000000000..e2a81a9757
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Object/prototype/toString/no-prototype-property.js
@@ -0,0 +1,15 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+es5id: sec-object.prototype.tostring
+description: Object.prototype.toString has no prototype property
+---*/
+
+assert.sameValue(
+ Object.prototype.toString.hasOwnProperty("prototype"),
+ false,
+ "Object.prototype.toString.hasOwnProperty(\"prototype\") returns false"
+);
+
+reportCompare(0, 0);