Skip to content

Commit d7716d4

Browse files
committed
one more #1161 workaround, for the pure version export context case
1 parent 47bdf63 commit d7716d4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/core-js-pure/override/internals/export.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = function (options, source) {
7070

7171
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;
7272

73-
// bind timers to global for call from export context
73+
// bind methods to global for calling from export context
7474
if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);
7575
// wrap global constructors for prevent changs in this version
7676
else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);

packages/core-js/modules/web.atob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var WRONG_ARITY = !NO_SPACES_IGNORE && !NO_ENCODING_CHECK && $atob.length !== 1;
3535

3636
// `atob` method
3737
// https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob
38-
$({ global: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK || WRONG_ARITY }, {
38+
$({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK || WRONG_ARITY }, {
3939
atob: function atob(data) {
4040
validateArgumentsLength(arguments.length, 1);
4141
// `webpack` dev server bug on IE global methods - use call(fn, global, ...)

packages/core-js/modules/web.btoa.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var WRONG_ARITY = !!$btoa && $btoa.length !== 1;
2424

2525
// `btoa` method
2626
// https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa
27-
$({ global: true, enumerable: true, forced: NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, {
27+
$({ global: true, bind: true, enumerable: true, forced: NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, {
2828
btoa: function btoa(data) {
2929
validateArgumentsLength(arguments.length, 1);
3030
// `webpack` dev server bug on IE global methods - use call(fn, global, ...)

0 commit comments

Comments
 (0)