MCPcopy
hub / github.com/javascript-obfuscator/javascript-obfuscator / getWeak

Function getWeak

test/fixtures/compile-performance.js:8120–8130  ·  view source on GitHub ↗
(it, create)

Source from the content-addressed store, hash-verified

8118 } return it[META].i;
8119 };
8120 var getWeak = function(it, create){
8121 if(!has(it, META)){
8122 // can't set metadata to uncaught frozen object
8123 if(!isExtensible(it))return true;
8124 // not necessary to add metadata
8125 if(!create)return false;
8126 // add missing metadata
8127 setMeta(it);
8128 // return hash weak collections IDs
8129 } return it[META].w;
8130 };
8131// add metadata on freeze-family methods calling
8132 var onFreeze = function(it){
8133 if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);

Callers 1

Calls 2

setMetaFunction · 0.85
hasFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…