Bug 1904139 - Don't re-initialize platform font list from GetDefaultFont. r=jfkthame
[gecko.git] / js / src / tests / test262 / built-ins / Number / prototype / S15.7.4_A1.js
blobf7454823712dc3ee1daadf35463a3c4c1f38e0ed
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 Number prototype object is itself a Number object
7     (its [[Class]] is "Number") whose value is +0
8 es5id: 15.7.4_A1
9 description: Checking type and value of Number.prototype property
10 ---*/
11 assert.sameValue(
12   typeof Number.prototype,
13   "object",
14   'The value of `typeof Number.prototype` is expected to be "object"'
17 assert(Number.prototype == 0, 'The value of Number.prototype is expected to be 0');
19 delete Number.prototype.toString;
21 assert.sameValue(
22   Number.prototype.toString(),
23   "[object Number]",
24   'Number.prototype.toString() must return "[object Number]"'
27 reportCompare(0, 0);