blob: 3388d1d311676dffd11802d7d5b145f1838e4b20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Number.prototype is itself Number object
description: >
Checking type of Number.prototype property - test based on
deleting Number.prototype.toString
---*/
//CHECK#1
if (typeof Number.prototype !== "object") {
$ERROR('#1: typeof Number.prototype === "object"');
}
delete Number.prototype.toString;
if (Number.prototype.toString() !== "[object Number]") {
$ERROR('#3: The [[Class]] property of the Number prototype object is set to "Number"');
}
|