MCPcopy Create free account
hub / github.com/TruthHun/BookStack / notEnumerableProp

Function notEnumerableProp

static/word2md/mammoth.browser.js:9282–9292  ·  view source on GitHub ↗
(obj, name, value)

Source from the content-addressed store, hash-verified

9280}
9281
9282function notEnumerableProp(obj, name, value) {
9283 if (isPrimitive(obj)) return obj;
9284 var descriptor = {
9285 value: value,
9286 configurable: true,
9287 enumerable: false,
9288 writable: true
9289 };
9290 es5.defineProperty(obj, name, descriptor);
9291 return obj;
9292}
9293
9294function thrower(r) {
9295 throw r;

Callers 3

SubErrorFunction · 0.70
OperationalErrorFunction · 0.70

Calls 1

isPrimitiveFunction · 0.70

Tested by

no test coverage detected