MCPcopy Create free account
hub / github.com/RubyLouvre/anu / $set

Function $set

test/babel.js:21276–21280  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

21274 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
21275 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
21276 var $set = function $set(value) {
21277 if (this === ObjectProto) $set.call(OPSymbols, value);
21278 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
21279 setSymbolDesc(this, tag, createDesc(1, value));
21280 };
21281 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
21282 return wrap(tag);
21283 };

Callers

nothing calls this directly

Calls 1

hasFunction · 0.70

Tested by

no test coverage detected