test262/test/built-ins/Number/15.7.4-1.js

16 lines
457 B
JavaScript

// 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 'Object'"
includes: [runTestCase.js]
---*/
function testcase() {
var numProto = Object.getPrototypeOf(new Number(42));
var s = Object.prototype.toString.call(numProto );
return (s === '[object Object]') ;
}
runTestCase(testcase);