MCPcopy Create free account
hub / github.com/GoogleChrome/samples / legacyModuleProp

Function legacyModuleProp

mkbitmap/mkbitmap.js:935–944  ·  view source on GitHub ↗
(prop, newName)

Source from the content-addressed store, hash-verified

933
934// include: runtime_debug.js
935function legacyModuleProp(prop, newName) {
936 if (!Object.getOwnPropertyDescriptor(Module, prop)) {
937 Object.defineProperty(Module, prop, {
938 configurable: true,
939 get: function() {
940 abort('Module.' + prop + ' has been replaced with plain ' + newName + ' (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)');
941 }
942 });
943 }
944}
945
946function ignoredModuleProp(prop) {
947 if (Object.getOwnPropertyDescriptor(Module, prop)) {

Callers 1

mkbitmap.jsFile · 0.85

Calls 1

abortFunction · 0.70

Tested by

no test coverage detected