| 785 | } |
| 786 | |
| 787 | function legacyModuleProp(prop, newName, incoming=true) { |
| 788 | if (!Object.getOwnPropertyDescriptor(Module, prop)) { |
| 789 | Object.defineProperty(Module, prop, { |
| 790 | configurable: true, |
| 791 | get() { |
| 792 | let extra = incoming ? ' (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)' : ''; |
| 793 | abort(`\`Module.${prop}\` has been replaced by \`${newName}\`` + extra); |
| 794 | |
| 795 | } |
| 796 | }); |
| 797 | } |
| 798 | } |
| 799 | |
| 800 | function ignoredModuleProp(prop) { |
| 801 | if (Object.getOwnPropertyDescriptor(Module, prop)) { |