From 5c11adc317ea75ebb53ce3c870e3c1dc7c67870a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Mon, 30 Aug 2021 16:09:58 -0400 Subject: [PATCH] support Reflect[@@toStringTag] https://github.com/tc39/ecma262/pull/2057 --- .../babel-plugin-polyfill-corejs3/src/built-in-definitions.js | 1 + .../test/check-builtin-definitions.test.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.js b/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.js index b9ea2a5a..13f2bf8c 100644 --- a/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.js +++ b/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.js @@ -521,6 +521,7 @@ export const StaticProperties: ObjectMap< "es.object.to-string", "es.math.to-string-tag", "es.json.to-string-tag", + "es.reflect.to-string-tag", ]), unscopables: define("symbol/unscopables", ["es.symbol.unscopables"]), }, diff --git a/packages/babel-plugin-polyfill-corejs3/test/check-builtin-definitions.test.js b/packages/babel-plugin-polyfill-corejs3/test/check-builtin-definitions.test.js index 8e86e9f8..5721088c 100644 --- a/packages/babel-plugin-polyfill-corejs3/test/check-builtin-definitions.test.js +++ b/packages/babel-plugin-polyfill-corejs3/test/check-builtin-definitions.test.js @@ -67,7 +67,6 @@ is not in "core-js-compat/entries": This is very likely a typo`, "es.date.set-year", "es.date.to-gmt-string", "es.escape", - "es.reflect.to-string-tag", "es.unescape", "esnext.array.filter-out", "esnext.map.update-or-insert",