summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/prototype/isPrototypeOf/length.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/tests/test262/built-ins/Object/prototype/isPrototypeOf/length.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Object/prototype/isPrototypeOf/length.js b/js/src/tests/test262/built-ins/Object/prototype/isPrototypeOf/length.js
new file mode 100644
index 0000000000..3bb8cfe675
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Object/prototype/isPrototypeOf/length.js
@@ -0,0 +1,26 @@
+// Copyright (C) 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-object.prototype.isprototypeof
+description: >
+ Object.prototype.isPrototypeOf.length is 1.
+info: |
+ Object.prototype.isPrototypeOf ( V )
+
+ ECMAScript Standard Built-in Objects
+
+ Unless otherwise specified, the length property of a built-in Function
+ object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
+ [[Configurable]]: true }.
+includes: [propertyHelper.js]
+---*/
+
+verifyProperty(Object.prototype.isPrototypeOf, "length", {
+ value: 1,
+ writable: false,
+ enumerable: false,
+ configurable: true,
+});
+
+reportCompare(0, 0);