`global`: update property name

This commit is contained in:
Jordan Harband 2018-07-25 17:11:53 -07:00
parent 48d95ac3c4
commit 765de9136d
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
3 changed files with 21 additions and 21 deletions

View File

@ -103,7 +103,7 @@ Intl.Segmenter
# Global # Global
# https://github.com/tc39/proposal-global # https://github.com/tc39/proposal-global
global globalThis
# `export * as namespace from module` consensus PR # `export * as namespace from module` consensus PR
# https://github.com/tc39/ecma262/pull/1174 # https://github.com/tc39/ecma262/pull/1174

View File

@ -2,25 +2,25 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-other-properties-of-the-global-object-global esid: sec-other-properties-of-the-global-object-globalthis
description: "'global' should be the global object" description: "'globalThis' should be the global object"
author: Jordan Harband author: Jordan Harband
features: [global] features: [globalThis]
---*/ ---*/
assert.sameValue(this, global); assert.sameValue(this, globalThis);
assert.sameValue(global.global, global); assert.sameValue(globalThis.globalThis, globalThis);
assert.sameValue(Array, global.Array); assert.sameValue(Array, globalThis.Array);
assert.sameValue(Boolean, global.Boolean); assert.sameValue(Boolean, globalThis.Boolean);
assert.sameValue(Date, global.Date); assert.sameValue(Date, globalThis.Date);
assert.sameValue(Error, global.Error); assert.sameValue(Error, globalThis.Error);
assert.sameValue(Function, global.Function); assert.sameValue(Function, globalThis.Function);
assert.sameValue(JSON, global.JSON); assert.sameValue(JSON, globalThis.JSON);
assert.sameValue(Math, global.Math); assert.sameValue(Math, globalThis.Math);
assert.sameValue(Number, global.Number); assert.sameValue(Number, globalThis.Number);
assert.sameValue(RegExp, global.RegExp); assert.sameValue(RegExp, globalThis.RegExp);
assert.sameValue(String, global.String); assert.sameValue(String, globalThis.String);
var globalVariable = {}; var globalVariable = {};
assert.sameValue(globalVariable, global.globalVariable); assert.sameValue(globalVariable, globalThis.globalVariable);

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-other-properties-of-the-global-object-global esid: sec-other-properties-of-the-global-object-globalthis
description: "'global' should be writable, non-enumerable, and configurable" description: "'globalThis' should be writable, non-enumerable, and configurable"
author: Jordan Harband author: Jordan Harband
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [global] features: [globalThis]
---*/ ---*/
verifyProperty(this, "global", { verifyProperty(this, "globalThis", {
enumerable: false, enumerable: false,
writable: true, writable: true,
configurable: true, configurable: true,