From 765de9136dd1dd040db640b30515080bf7a430d8 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 25 Jul 2018 17:11:53 -0700 Subject: [PATCH] `global`: update property name --- features.txt | 2 +- test/built-ins/global/global-object.js | 32 ++++++++++---------- test/built-ins/global/property-descriptor.js | 8 ++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/features.txt b/features.txt index 966affca14..478e419365 100644 --- a/features.txt +++ b/features.txt @@ -103,7 +103,7 @@ Intl.Segmenter # Global # https://github.com/tc39/proposal-global -global +globalThis # `export * as namespace from module` consensus PR # https://github.com/tc39/ecma262/pull/1174 diff --git a/test/built-ins/global/global-object.js b/test/built-ins/global/global-object.js index 89c15b9a9a..92a981c69b 100644 --- a/test/built-ins/global/global-object.js +++ b/test/built-ins/global/global-object.js @@ -2,25 +2,25 @@ // 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" +esid: sec-other-properties-of-the-global-object-globalthis +description: "'globalThis' should be the global object" author: Jordan Harband -features: [global] +features: [globalThis] ---*/ -assert.sameValue(this, global); -assert.sameValue(global.global, global); +assert.sameValue(this, globalThis); +assert.sameValue(globalThis.globalThis, globalThis); -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); +assert.sameValue(Array, globalThis.Array); +assert.sameValue(Boolean, globalThis.Boolean); +assert.sameValue(Date, globalThis.Date); +assert.sameValue(Error, globalThis.Error); +assert.sameValue(Function, globalThis.Function); +assert.sameValue(JSON, globalThis.JSON); +assert.sameValue(Math, globalThis.Math); +assert.sameValue(Number, globalThis.Number); +assert.sameValue(RegExp, globalThis.RegExp); +assert.sameValue(String, globalThis.String); var globalVariable = {}; -assert.sameValue(globalVariable, global.globalVariable); +assert.sameValue(globalVariable, globalThis.globalVariable); diff --git a/test/built-ins/global/property-descriptor.js b/test/built-ins/global/property-descriptor.js index d01442a10c..48b459ed45 100644 --- a/test/built-ins/global/property-descriptor.js +++ b/test/built-ins/global/property-descriptor.js @@ -2,14 +2,14 @@ // 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" +esid: sec-other-properties-of-the-global-object-globalthis +description: "'globalThis' should be writable, non-enumerable, and configurable" author: Jordan Harband includes: [propertyHelper.js] -features: [global] +features: [globalThis] ---*/ -verifyProperty(this, "global", { +verifyProperty(this, "globalThis", { enumerable: false, writable: true, configurable: true,