| 933 | |
| 934 | // include: runtime_debug.js |
| 935 | function 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 | |
| 946 | function ignoredModuleProp(prop) { |
| 947 | if (Object.getOwnPropertyDescriptor(Module, prop)) { |