Skip to content

Polyfill for Promise might breaks wasm on edge #815

@clouds56

Description

@clouds56

We might fix for WebAssembly.instantiateStreaming.

(function() {
	var proxied = WebAssembly.instantiateStreaming;
	WebAssembly.instantiateStreaming = function(response, importObject) {
		return Promise.resolve(response).then(res => {
			return proxied(res, importObject);
		});
	};
})();

See also webpack/webpack#10560

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions