Skip to content

Commit 9029e4c

Browse files
diegovdevzloirock
authored andcommitted
Fix to avoid minification problem with esbuild
esbuild will minify this to 1.toString (removing the zero) which will result in a syntax error in the browser.
1 parent 63447e6 commit 9029e4c

File tree

1 file changed

+1
-1
lines changed
  • packages/core-js/internals

1 file changed

+1
-1
lines changed

packages/core-js/internals/uid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var uncurryThis = require('../internals/function-uncurry-this');
33

44
var id = 0;
55
var postfix = Math.random();
6-
var toString = uncurryThis(1.0.toString);
6+
var toString = uncurryThis(1.1.toString);
77

88
module.exports = function (key) {
99
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);

0 commit comments

Comments
 (0)