Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Number / S15.7.5_A1_T04.js
blob15fc2b0174cb166104ac093aefecf09ed86611a3
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     Number instances have no special properties beyond those
7     inherited from the Number prototype object
8 es5id: 15.7.5_A1_T04
9 description: Checking property valueOf
10 ---*/
11 assert.sameValue(
12   (new Number()).hasOwnProperty("valueOf"),
13   false,
14   '(new Number()).hasOwnProperty("valueOf") must return false'
17 assert.sameValue(
18   (new Number()).valueOf,
19   Number.prototype.valueOf,
20   'The value of (new Number()).valueOf is expected to equal the value of Number.prototype.valueOf'
23 reportCompare(0, 0);