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.3.1_A2_T2.js
blob5a866328c6f057d92c583bb153931dda8bc56bed
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: Number.prototype is itself Number object
6 es5id: 15.7.3.1_A2_T2
7 description: >
8     Checking type of Number.prototype property - test based on
9     overwriting of Number.prototype.toString
10 ---*/
11 assert.sameValue(
12   typeof Number.prototype,
13   "object",
14   'The value of `typeof Number.prototype` is expected to be "object"'
17 Number.prototype.toString = Object.prototype.toString;
19 assert.sameValue(
20   Number.prototype.toString(),
21   "[object Number]",
22   'Number.prototype.toString() must return "[object Number]"'
25 reportCompare(0, 0);