| 1 |
// Copyright (C) 2016 Jordan Harband. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: sec-other-properties-of-the-global-object-global |
| 6 |
description: "'global' should be the global object" |
| 7 |
author: Jordan Harband |
| 8 |
---*/ |
| 9 |
|
| 10 |
assert.sameValue(this, global); |
| 11 |
assert.sameValue(global.global, global); |
| 12 |
|
| 13 |
assert.sameValue(Array, global.Array); |
| 14 |
assert.sameValue(Boolean, global.Boolean); |
| 15 |
assert.sameValue(Date, global.Date); |
| 16 |
assert.sameValue(Error, global.Error); |
| 17 |
assert.sameValue(Function, global.Function); |
| 18 |
assert.sameValue(JSON, global.JSON); |
| 19 |
assert.sameValue(Math, global.Math); |
| 20 |
assert.sameValue(Number, global.Number); |
| 21 |
assert.sameValue(RegExp, global.RegExp); |
| 22 |
assert.sameValue(String, global.String); |
| 23 |
|
| 24 |
var globalVariable = {}; |
| 25 |
assert.sameValue(globalVariable, global.globalVariable); |