(sym, msg)
| 963 | } |
| 964 | |
| 965 | function missingGlobal(sym, msg) { |
| 966 | if (typeof globalThis !== 'undefined') { |
| 967 | Object.defineProperty(globalThis, sym, { |
| 968 | configurable: true, |
| 969 | get: function() { |
| 970 | warnOnce('`' + sym + '` is not longer defined by emscripten. ' + msg); |
| 971 | return undefined; |
| 972 | } |
| 973 | }); |
| 974 | } |
| 975 | } |
| 976 | |
| 977 | missingGlobal('buffer', 'Please use HEAP8.buffer or wasmMemory.buffer'); |
| 978 |