oraoto / pib

PHP in Browser (powered by WebAssembly)
https://oraoto.github.io/pib/
Apache License 2.0
956 stars 112 forks source link

PIB doesn’t work in Safari 12 #30

Open nikolayemrikh opened 5 years ago

nikolayemrikh commented 5 years ago

Hi, I’d like to ask you a question. PIB doesn’t work in Safari 12 because of never resolved promise, that returns from WebAssembly.instantiate, which used as fallback. Safari 12 ( and also 13 beta) doesn’t have WebAssembly.instantiateStreaming. Promise only resolves in Safari 13 beta and all works. I managed to find out that the problem is in WebAssembly.Memory, which instance used as property in second argument of WebAssembly.instantiate method. Promise had resolved when i removed WebAssembly.Memory instance from properties (it fails later, but anyway). I tried to change the amount of allocated memory, but it had no effect

Maybe you have some thoughts about workaround of this problem?