MCPcopy Index your code
hub / github.com/javascript-obfuscator/javascript-obfuscator / setMeta

Function setMeta

test/fixtures/compile-performance.js:8101–8106  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

8099 return isExtensible(Object.preventExtensions({}));
8100 });
8101 var setMeta = function(it){
8102 setDesc(it, META, {value: {
8103 i: 'O' + ++id, // object ID
8104 w: {} // weak collections IDs
8105 }});
8106 };
8107 var fastKey = function(it, create){
8108 // return primitive with prefix
8109 if(!isObject(it))return 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…