tests/auto/qml/ecmascripttests/test262/test/built-ins/Math/proto.js
raw| 1 | // Copyright (C) 2016 The V8 Project authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | es6id: 20.2 |
| 6 | esid: sec-math-object |
| 7 | description: > |
| 8 | The prototype of Math is Object.prototype |
| 9 | info: | |
| 10 | The Math Object |
| 11 | |
| 12 | The value of the [[Prototype]] internal slot of the Math object is the |
| 13 | intrinsic object %ObjectPrototype%. |
| 14 | ---*/ |
| 15 | |
| 16 | var proto = Object.getPrototypeOf(Math); |
| 17 | |
| 18 | assert.sameValue(proto, Object.prototype); |