Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Jan 22, 2024
1 parent 14c689c commit 6dd5400
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export const StaticProperties: ObjectMap2<CoreJSPolyfillDescriptor> = {
]),
race: define(null, PromiseDependenciesWithIterators),
try: define("promise/try", ["esnext.promise.try", ...PromiseDependencies]),
withResolvers: define(null, [
withResolvers: define("promise/with-resolvers", [
"es.promise.with-resolvers",
...PromiseDependencies,
]),
Expand Down
14 changes: 0 additions & 14 deletions packages/babel-plugin-polyfill-corejs3/src/shipped-proposals.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
// This file is automatically generated by scripts/build-corejs3-shipped-proposals.mjs

export default new Set<string>([
"esnext.suppressed-error.constructor",
"esnext.array.from-async",
"esnext.array.group",
"esnext.array.group-to-map",
"esnext.array-buffer.detached",
"esnext.array-buffer.transfer",
"esnext.array-buffer.transfer-to-fixed-length",
"esnext.iterator.constructor",
"esnext.iterator.drop",
"esnext.iterator.every",
"esnext.iterator.filter",
"esnext.iterator.find",
"esnext.iterator.flat-map",
"esnext.iterator.for-each",
"esnext.iterator.from",
"esnext.iterator.map",
"esnext.iterator.reduce",
"esnext.iterator.some",
"esnext.iterator.take",
"esnext.iterator.to-array",
"esnext.json.is-raw-json",
"esnext.json.parse",
"esnext.json.raw-json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import _self from "core-js-pure/stable/self.js";
import _URL$canParse from "core-js-pure/stable/url/can-parse.js";
import _Object$groupBy from "core-js-pure/features/object/group-by.js";
import _Map$groupBy from "core-js-pure/features/map/group-by.js";
import _Promise from "core-js-pure/stable/promise/index.js";
import _Promise$withResolvers from "core-js-pure/features/promise/with-resolvers.js";
import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js";
_findLastInstanceProperty(_context = []).call(_context, fn);
_findLastIndexInstanceProperty(_context2 = []).call(_context2, fn);
Expand Down Expand Up @@ -78,7 +78,7 @@ _Symbol.isRegisteredSymbol(foo);
_Symbol.metadata;
_Object$groupBy(a, b);
_Map$groupBy(a, b);
_Promise.withResolvers();
_Promise$withResolvers();
new _URLSearchParams().has(a, b);
Math.f16round(foo);
foo.getFloat16(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import _self from "core-js-pure/stable/self.js";
import _URL$canParse from "core-js-pure/stable/url/can-parse.js";
import _Object$groupBy from "core-js-pure/features/object/group-by.js";
import _Map$groupBy from "core-js-pure/features/map/group-by.js";
import _Promise from "core-js-pure/stable/promise/index.js";
import _Promise$withResolvers from "core-js-pure/features/promise/with-resolvers.js";
import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js";
_findLastInstanceProperty(_context = []).call(_context, fn);
_findLastIndexInstanceProperty(_context2 = []).call(_context2, fn);
Expand Down Expand Up @@ -78,7 +78,7 @@ _Symbol.isRegisteredSymbol(foo);
_Symbol.metadata;
_Object$groupBy(a, b);
_Map$groupBy(a, b);
_Promise.withResolvers();
_Promise$withResolvers();
new _URLSearchParams().has(a, b);
Math.f16round(foo);
foo.getFloat16(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import _self from "core-js-pure/stable/self.js";
import _URL$canParse from "core-js-pure/stable/url/can-parse.js";
import _Object$groupBy from "core-js-pure/features/object/group-by.js";
import _Map$groupBy from "core-js-pure/features/map/group-by.js";
import _Promise from "core-js-pure/stable/promise/index.js";
import _Promise$withResolvers from "core-js-pure/features/promise/with-resolvers.js";
import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js";
_findLastInstanceProperty(_context = []).call(_context, fn);
_findLastIndexInstanceProperty(_context2 = []).call(_context2, fn);
Expand Down Expand Up @@ -78,7 +78,7 @@ _Symbol.isRegisteredSymbol(foo);
_Symbol.metadata;
_Object$groupBy(a, b);
_Map$groupBy(a, b);
_Promise.withResolvers();
_Promise$withResolvers();
new _URLSearchParams().has(a, b);
Math.f16round(foo);
foo.getFloat16(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import _self from "core-js-pure/stable/self.js";
import _URL$canParse from "core-js-pure/stable/url/can-parse.js";
import _Object$groupBy from "core-js-pure/stable/object/group-by.js";
import _Map$groupBy from "core-js-pure/stable/map/group-by.js";
import _Promise from "core-js-pure/stable/promise/index.js";
import _Promise$withResolvers from "core-js-pure/stable/promise/with-resolvers.js";
import _URLSearchParams from "core-js-pure/stable/url-search-params/index.js";
_findLastInstanceProperty(_context = []).call(_context, fn);
_findLastIndexInstanceProperty(_context2 = []).call(_context2, fn);
Expand Down Expand Up @@ -78,7 +78,7 @@ _Symbol.isRegisteredSymbol(foo);
_Symbol.metadata;
_Object$groupBy(a, b);
_Map$groupBy(a, b);
_Promise.withResolvers();
_Promise$withResolvers();
new _URLSearchParams().has(a, b);
Math.f16round(foo);
foo.getFloat16(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-know
import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js";
import _Object$groupBy from "core-js-pure/features/object/group-by.js";
import _Map$groupBy from "core-js-pure/features/map/group-by.js";
import _Promise$withResolvers from "core-js-pure/features/promise/with-resolvers.js";
_findLastInstanceProperty(_context = []).call(_context, fn);
_findLastIndexInstanceProperty(_context2 = []).call(_context2, fn);
_asIndexedPairsInstanceProperty(_context3 = []).call(_context3);
Expand Down Expand Up @@ -93,7 +94,7 @@ _Symbol$isRegisteredSymbol(foo);
_Symbol$metadata;
_Object$groupBy(a, b);
_Map$groupBy(a, b);
Promise.withResolvers();
_Promise$withResolvers();
new URLSearchParams().has(a, b);
Math.f16round(foo);
foo.getFloat16(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-know
import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js";
import _Object$groupBy from "core-js-pure/features/object/group-by.js";
import _Map$groupBy from "core-js-pure/features/map/group-by.js";
import _Promise$withResolvers from "core-js-pure/features/promise/with-resolvers.js";
import _Math$f16round from "core-js-pure/features/math/f16round.js";
_findLastInstanceProperty(_context = []).call(_context, fn);
_findLastIndexInstanceProperty(_context2 = []).call(_context2, fn);
Expand Down Expand Up @@ -94,7 +95,7 @@ _Symbol$isRegisteredSymbol(foo);
_Symbol$metadata;
_Object$groupBy(a, b);
_Map$groupBy(a, b);
Promise.withResolvers();
_Promise$withResolvers();
new URLSearchParams().has(a, b);
_Math$f16round(foo);
foo.getFloat16(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-know
import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js";
import _Object$groupBy from "core-js-pure/features/object/group-by.js";
import _Map$groupBy from "core-js-pure/features/map/group-by.js";
import _Promise$withResolvers from "core-js-pure/features/promise/with-resolvers.js";
import _Math$f16round from "core-js-pure/features/math/f16round.js";
import _RegExp$escape from "core-js-pure/features/regexp/escape.js";
_findLastInstanceProperty(_context = []).call(_context, fn);
Expand Down Expand Up @@ -95,7 +96,7 @@ _Symbol$isRegisteredSymbol(foo);
_Symbol$metadata;
_Object$groupBy(a, b);
_Map$groupBy(a, b);
Promise.withResolvers();
_Promise$withResolvers();
new URLSearchParams().has(a, b);
_Math$f16round(foo);
foo.getFloat16(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import _Symbol$isWellKnownSymbol from "core-js-pure/features/symbol/is-well-know
import _Symbol$isRegisteredSymbol from "core-js-pure/features/symbol/is-registered-symbol.js";
import _Object$groupBy from "core-js-pure/features/object/group-by.js";
import _Map$groupBy from "core-js-pure/features/map/group-by.js";
import _Promise$withResolvers from "core-js-pure/features/promise/with-resolvers.js";
import _Math$f16round from "core-js-pure/features/math/f16round.js";
import _RegExp$escape from "core-js-pure/features/regexp/escape.js";
_findLastInstanceProperty(_context = []).call(_context, fn);
Expand Down Expand Up @@ -95,7 +96,7 @@ _Symbol$isRegisteredSymbol(foo);
_Symbol$metadata;
_Object$groupBy(a, b);
_Map$groupBy(a, b);
Promise.withResolvers();
_Promise$withResolvers();
new URLSearchParams().has(a, b);
_Math$f16round(foo);
foo.getFloat16(0);
Expand Down

0 comments on commit 6dd5400

Please sign in to comment.