4
lorentz
14h

Durandal raises parsing errors as "no property 'instance' on undefined", thrown in a context where "module.instance" is visible but the path the module was loaded from is not.

Have some fucking pride in your work man. If the module name is null, just throw.

Comments
  • 1
    Kinda the problem with error handling by exceptions. Nobody probably even though about that error case
  • 1
    @12bitfloat More dynamic typing, but imagine if JS had Result but no types, and you had to unwrap or forward the error every time you tried to index an object in case it wasn't actually an object.

    Actually you don't need to imagine, that is exactly what it looks like when you have to operate on JS values via the bindings from WASM Rust.
  • 0
    @lorentz Yeah the ergonomics wouldn't be the greatest lol
Add Comment