wasm-bindgen/tests/wasm/polyfill.js
Alex Crichton 3c14f7a6eb Implement a polyfill attribute for imports
Allow using imported APIs under alternative names, such as prefixed
names, for web APIs when the exact API differs across browsers.
2018-09-28 13:43:00 -07:00

6 lines
92 B
JavaScript

exports.import_me = function() {};
global.PolyfillBar = class {
foo() { return 123; }
};