From e89e9a8a28ede33a6839cae85374ec1b02bec08c Mon Sep 17 00:00:00 2001 From: Leo Balter <leonardo.balter@gmail.com> Date: Mon, 18 Jun 2018 18:00:19 -0400 Subject: [PATCH] Add global feature tag (#1600) --- features.txt | 4 ++++ test/built-ins/global/global-object.js | 1 + test/built-ins/global/property-descriptor.js | 9 ++++++--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/features.txt b/features.txt index a0b1565d3d..4c146761d0 100644 --- a/features.txt +++ b/features.txt @@ -89,6 +89,10 @@ json-superset # https://github.com/tc39/proposal-intl-locale Intl.Locale +# Global +# https://github.com/tc39/proposal-global +global + # Standard language features # # Language features that have been included in a published version of the diff --git a/test/built-ins/global/global-object.js b/test/built-ins/global/global-object.js index cb5146827e..89c15b9a9a 100644 --- a/test/built-ins/global/global-object.js +++ b/test/built-ins/global/global-object.js @@ -5,6 +5,7 @@ esid: sec-other-properties-of-the-global-object-global description: "'global' should be the global object" author: Jordan Harband +features: [global] ---*/ assert.sameValue(this, global); diff --git a/test/built-ins/global/property-descriptor.js b/test/built-ins/global/property-descriptor.js index 49afab10d7..d01442a10c 100644 --- a/test/built-ins/global/property-descriptor.js +++ b/test/built-ins/global/property-descriptor.js @@ -6,8 +6,11 @@ esid: sec-other-properties-of-the-global-object-global description: "'global' should be writable, non-enumerable, and configurable" author: Jordan Harband includes: [propertyHelper.js] +features: [global] ---*/ -verifyNotEnumerable(this, 'global'); -verifyWritable(this, 'global'); -verifyConfigurable(this, 'global'); +verifyProperty(this, "global", { + enumerable: false, + writable: true, + configurable: true, +}); -- GitLab