summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Array/S15.4.3_A1.1_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/S15.4.3_A1.1_T1.js')
-rw-r--r--js/src/tests/test262/built-ins/Array/S15.4.3_A1.1_T1.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Array/S15.4.3_A1.1_T1.js b/js/src/tests/test262/built-ins/Array/S15.4.3_A1.1_T1.js
new file mode 100644
index 0000000000..c6872c6a8e
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Array/S15.4.3_A1.1_T1.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.
+
+/*---
+info: |
+ The value of the internal [[Prototype]] property of
+ the Array constructor is the Function prototype object
+es5id: 15.4.3_A1.1_T1
+description: >
+ Create new property of Function.prototype. When Array constructor
+ has this property
+---*/
+
+Function.prototype.myproperty = 1;
+
+assert.sameValue(Array.myproperty, 1, 'The value of Array.myproperty is expected to be 1');
+assert.sameValue(Array.hasOwnProperty('myproperty'), false, 'Array.hasOwnProperty("myproperty") must return false');
+
+reportCompare(0, 0);