2016-09-28 19:53:50 +02:00
|
|
|
// Copyright (C) 2016 Jordan Harband. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: sec-other-properties-of-the-global-object-global
|
2016-10-07 19:34:11 +02:00
|
|
|
description: "'global' should be the global object"
|
2016-09-28 19:53:50 +02:00
|
|
|
author: Jordan Harband
|
2018-06-19 00:00:19 +02:00
|
|
|
features: [global]
|
2016-09-28 19:53:50 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
assert.sameValue(this, global);
|
|
|
|
assert.sameValue(global.global, global);
|
|
|
|
|
|
|
|
assert.sameValue(Array, global.Array);
|
|
|
|
assert.sameValue(Boolean, global.Boolean);
|
|
|
|
assert.sameValue(Date, global.Date);
|
|
|
|
assert.sameValue(Error, global.Error);
|
|
|
|
assert.sameValue(Function, global.Function);
|
|
|
|
assert.sameValue(JSON, global.JSON);
|
|
|
|
assert.sameValue(Math, global.Math);
|
|
|
|
assert.sameValue(Number, global.Number);
|
|
|
|
assert.sameValue(RegExp, global.RegExp);
|
|
|
|
assert.sameValue(String, global.String);
|
|
|
|
|
2017-02-07 17:10:56 +01:00
|
|
|
var globalVariable = {};
|
2016-09-28 19:53:50 +02:00
|
|
|
assert.sameValue(globalVariable, global.globalVariable);
|