Skip to content
Snippets Groups Projects
Commit be16caa4 authored by Jordan Harband's avatar Jordan Harband Committed by Tom Care
Browse files
parent 3707a857
No related branches found
No related tags found
No related merge requests found
// 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
description: `global` should be the global object
author: Jordan Harband
includes: [propertyHelper.js]
---*/
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);
globalVariable = {};
assert.sameValue(globalVariable, global.globalVariable);
// 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
description: `global` should be writable, non-enumerable, and configurable
author: Jordan Harband
includes: [propertyHelper.js]
---*/
verifyNotEnumerable(this, 'global');
verifyWritable(this, 'global');
verifyConfigurable(this, 'global');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment