Anyone run into this problem?


#1

I have some code which crashes at runtime with a “Failed Pattern Match” when it’s called from JavaScript but which really really looks like it ought to work.

I made a minimal example but…turns out that there’s no failure in minimal example :confused:

My question therefore is simply has anyone ever seen a Failed Pattern Match when calling across the FFI? Could it be some thing Webpack related where the prototype function is different in one file from another?

(snapshot of console view in browser debugger might tell someone-wiser-than-i something useful so i’ll attach that)


#2

In case it’s of any interest - the simplified version which doesn’t exhibit the problem is here:

that’s the basic structure as a minimal pulp/psc-package project, but with webpack and sundry other stuff in the mix, as i say, crashes in the case statement