Skip to content

Commit 71a3baf

Browse files
authored
Update internal-metadata.js
Some old minify plugins export objectID:"O"+++s 19line. I hope change id calculate position.
1 parent 84ba59e commit 71a3baf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core-js/internals/internal-metadata.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ var isExtensible = Object.isExtensible || function () {
1414
};
1515

1616
var setMetadata = function (it) {
17+
id++;
1718
defineProperty(it, METADATA, { value: {
18-
objectID: 'O' + ++id, // object ID
19+
objectID: 'O' + id, // object ID
1920
weakData: {} // weak collections IDs
2021
} });
2122
};

0 commit comments

Comments
 (0)