Reland "Ship globalThis 🎉"
This is a reland of 4dac9872ae
Original change's description:
> Ship globalThis 🎉
>
> Proposal repository:
> https://github.com/tc39/proposal-global
>
> Intent to ship:
> https://groups.google.com/d/msg/v8-users/Vkoh0wXRwaM/Yt7MpzhkAgAJ
>
> Bug: v8:5537
> Change-Id: I60a6c5375165d89548db12fef454a64137d04c27
> Reviewed-on: https://chromium-review.googlesource.com/1195494
> Reviewed-by: Adam Klein <adamk@chromium.org>
> Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
> Commit-Queue: Mathias Bynens <mathias@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#55543}
TBR=adamk@chromium.org,machenbach@chromium.org,gsathya@chromium.org,mathias@chromium.org
No-Presubmit: true
Bug: v8:5537
Change-Id: I1e20d606bb027d7afca713ffde87e183b6f610bd
Reviewed-on: https://chromium-review.googlesource.com/1208633
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55732}
This commit is contained in:
parent
c2a3d24b24
commit
b4b2dafc03
@ -230,7 +230,6 @@ DEFINE_IMPLICATION(harmony_class_fields, harmony_private_fields)
|
||||
V(harmony_private_fields, "harmony private fields in class literals") \
|
||||
V(harmony_numeric_separator, "harmony numeric separator between digits") \
|
||||
V(harmony_string_matchall, "harmony String.prototype.matchAll") \
|
||||
V(harmony_global, "harmony global") \
|
||||
V(harmony_static_fields, "harmony static fields in class literals")
|
||||
|
||||
// Features that are shipping (turned on by default, but internal flag remains).
|
||||
@ -243,7 +242,8 @@ DEFINE_IMPLICATION(harmony_class_fields, harmony_private_fields)
|
||||
V(harmony_dynamic_import, "harmony dynamic import") \
|
||||
V(harmony_array_prototype_values, "harmony Array.prototype.values") \
|
||||
V(harmony_array_flat, "harmony Array.prototype.{flat,flatMap}") \
|
||||
V(harmony_symbol_description, "harmony Symbol.prototype.description")
|
||||
V(harmony_symbol_description, "harmony Symbol.prototype.description") \
|
||||
V(harmony_global, "harmony global")
|
||||
|
||||
// Once a shipping feature has proved stable in the wild, it will be dropped
|
||||
// from HARMONY_SHIPPING, all occurrences of the FLAG_ variable are removed,
|
||||
|
@ -13,7 +13,7 @@ assertEquals(globalThis.globalThis.globalThis.globalThis, this);
|
||||
{
|
||||
const realm = Realm.create();
|
||||
assertEquals(Realm.global(realm), Realm.eval(realm, 'globalThis'));
|
||||
assertTrue(Realm.global(realm) !== globalThis);
|
||||
assertNotEquals(Realm.global(realm), globalThis);
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user