mirror of
https://github.com/tc39/test262.git
synced 2025-05-15 12:20:28 +02:00
- Revert Number, Boolean and String prototypes to ES5 semantics - Revert String.prototype.split's to ES5 behavior
13 lines
391 B
JavaScript
13 lines
391 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 'Number'"
|
|
---*/
|
|
|
|
var numProto = Object.getPrototypeOf(new Number(42));
|
|
var s = Object.prototype.toString.call(numProto );
|
|
|
|
assert.sameValue(s, '[object Number]', 's');
|