MCPcopy Create free account
hub / github.com/phaserjs/phaser / hasNonConfigurable

Function hasNonConfigurable

src/utils/Class.js:47–67  ·  view source on GitHub ↗
(obj, k)

Source from the content-addressed store, hash-verified

45}
46
47function hasNonConfigurable (obj, k)
48{
49 var prop = Object.getOwnPropertyDescriptor(obj, k);
50
51 if (!prop)
52 {
53 return false;
54 }
55
56 if (prop.value && typeof prop.value === 'object')
57 {
58 prop = prop.value;
59 }
60
61 if (prop.configurable === false)
62 {
63 return true;
64 }
65
66 return false;
67}
68
69/**
70 * Extends the given `ctor` object's prototype with the properties of `definition`.

Callers 1

extendFunction · 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…