summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Number/15.7.4-1.js
blob: 405e0491f84c26412c5ec6c61d8228738f07df09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.7.4-1
description: "Number prototype object: its [[Class]] must be 'Number'"
---*/

var numProto = Object.getPrototypeOf(new Number(42));
var s = Object.prototype.toString.call(numProto);

assert.sameValue(s, '[object Number]', 's');

reportCompare(0, 0);