summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/prototype/toString/no-prototype-property.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/prototype/toString/no-prototype-property.js')
-rw-r--r--test/built-ins/Object/prototype/toString/no-prototype-property.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/built-ins/Object/prototype/toString/no-prototype-property.js b/test/built-ins/Object/prototype/toString/no-prototype-property.js
new file mode 100644
index 000000000..d82a7b95d
--- /dev/null
+++ b/test/built-ins/Object/prototype/toString/no-prototype-property.js
@@ -0,0 +1,13 @@
+// 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"
+);