MCPcopy Create free account
hub / github.com/RubyLouvre/anu / setMeta

Function setMeta

test/babel.js:5393–5398  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

5391 return isExtensible(Object.preventExtensions({}));
5392 });
5393 var setMeta = function setMeta(it) {
5394 setDesc(it, META, { value: {
5395 i: 'O' + ++id, // object ID
5396 w: {} // weak collections IDs
5397 } });
5398 };
5399 var fastKey = function fastKey(it, create) {
5400 // return primitive with prefix
5401 if (!isObject(it)) return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;

Callers 3

fastKeyFunction · 0.85
getWeakFunction · 0.85
onFreezeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected