Object.create(null) -> standard object
This commit is contained in:
parent
0876e7a160
commit
938ce50695
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user