Skip to content

Commit

Permalink
Add missing instance/ prefixes to babel-runtime data
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 20, 2024
1 parent ac9817f commit f6de94a
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,47 @@ export const stable = new Set([
"array/from",
"array/is-array",
"array/of",
"bind",
"clear-immediate",
"code-point-at",
"concat",
"copy-within",
"date/now",
"ends-with",
"entries",
"every",
"fill",
"filter",
"find",
"find-index",
"flags",
"flat",
"flat-map",
"for-each",
"includes",
"index-of",
"instance/bind",
"instance/concat",
"instance/copy-within",
"instance/ends-with",
"instance/entries",
"instance/every",
"instance/fill",
"instance/filter",
"instance/find",
"instance/find-index",
"instance/flags",
"instance/flat",
"instance/flat-map",
"instance/for-each",
"instance/includes",
"instance/index-of",
"instance/keys",
"instance/map",
"instance/pad-end",
"instance/pad-start",
"instance/reduce",
"instance/reduce-right",
"instance/repeat",
"instance/reverse",
"instance/slice",
"instance/some",
"instance/sort",
"instance/splice",
"instance/starts-with",
"instance/trim",
"instance/trim-end",
"instance/trim-left",
"instance/trim-right",
"instance/trim-start",
"instance/values",
"json/stringify",
"keys",
"last-index-of",
"map",
"map",
"math/acosh",
"math/asinh",
"math/atanh",
Expand Down Expand Up @@ -78,14 +95,10 @@ export const stable = new Set([
"object/seal",
"object/set-prototype-of",
"object/values",
"pad-end",
"pad-start",
"parse-float",
"parse-int",
"promise",
"queue-microtask",
"reduce",
"reduce-right",
"reflect/apply",
"reflect/construct",
"reflect/define-property",
Expand All @@ -99,17 +112,10 @@ export const stable = new Set([
"reflect/prevent-extensions",
"reflect/set",
"reflect/set-prototype-of",
"repeat",
"reverse",
"set",
"set-immediate",
"set-interval",
"set-timeout",
"slice",
"some",
"sort",
"splice",
"starts-with",
"string/from-code-point",
"string/raw",
"symbol",
Expand All @@ -127,27 +133,22 @@ export const stable = new Set([
"symbol/to-primitive",
"symbol/to-string-tag",
"symbol/unscopables",
"trim",
"trim-end",
"trim-left",
"trim-right",
"trim-start",
"url",
"url-search-params",
"values",
"weak-map",
"weak-set",
]);

export const proposals = new Set([
...stable,
"aggregate-error",
"at",
"code-points",
"composite-key",
"composite-symbol",
"global-this",
"match-all",
"instance/at",
"instance/code-points",
"instance/match-all",
"instance/replace-all",
"math/clamp",
"math/degrees",
"math/deg-per-rad",
Expand All @@ -172,7 +173,6 @@ export const proposals = new Set([
"reflect/has-metadata",
"reflect/has-own-metadata",
"reflect/metadata",
"replace-all",
"symbol/dispose",
"symbol/observable",
"symbol/pattern-match",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Promise.allSettled(1, 2, 3);
Observable(1, 2, 3);
Observable(1, 2, 3);
foo.forEach(cb);
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import _Promise from "@babel/runtime-corejs3/core-js/promise.js";
import _Observable from "@babel/runtime-corejs3/core-js/observable.js";
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js/instance/for-each.js";
_Promise.allSettled(1, 2, 3);
_Observable(1, 2, 3);
_forEachInstanceProperty(foo).call(foo, cb);
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Promise.allSettled(1, 2, 3);
Observable(1, 2, 3);
Observable(1, 2, 3);
foo.forEach(cb);
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise.js";
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each.js";
_Promise.allSettled(1, 2, 3);
Observable(1, 2, 3);
_forEachInstanceProperty(foo).call(foo, cb);

0 comments on commit f6de94a

Please sign in to comment.