Object.create(null) -> standard object

This commit is contained in:
Chris Hewell Garrett 2022-01-16 09:41:22 -05:00
parent 0876e7a160
commit 938ce50695
No known key found for this signature in database
GPG Key ID: BEF86E32E8C996E9

View File

@ -56,7 +56,7 @@ function createMetadataMethodsForProperty(metadataMap, kind, property) {
var pub = metadataForKey.public;
if (pub === void 0) {
pub = metadataForKey.public = Object.create(null);
pub = metadataForKey.public = {};
}
pub[property] = value;