Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Array / S15.4.3_A1.1_T1.js
blobc6872c6a8e1e96407ccb51f2d855254673a3282e
1 // Copyright 2009 the Sputnik authors.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 info: |
6     The value of the internal [[Prototype]] property of
7     the Array constructor is the Function prototype object
8 es5id: 15.4.3_A1.1_T1
9 description: >
10     Create new property of Function.prototype. When Array constructor
11     has this property
12 ---*/
14 Function.prototype.myproperty = 1;
16 assert.sameValue(Array.myproperty, 1, 'The value of Array.myproperty is expected to be 1');
17 assert.sameValue(Array.hasOwnProperty('myproperty'), false, 'Array.hasOwnProperty("myproperty") must return false');
19 reportCompare(0, 0);