blob: cf28259259d97e6974f5216efbbc727f0676ac3f [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright 2009 the Sputnik authors. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/*---
5info: >
6 Number instances have no special properties beyond those
7 inherited from the Number prototype object
8es5id: 15.7.5_A1_T04
9description: Checking property valueOf
10---*/
11
12//CHECK#1
13if((new Number()).hasOwnProperty("valueOf") !== false){
14 $ERROR('#1: Number instance must have no special property "valueOf"');
15}
16
17//CHECK#2
18if((new Number()).valueOf !== Number.prototype.valueOf){
19 $ERROR('#2: Number instance property "valueOf" must be inherited from Number prototype object');
20}