fermyon / spin-js-sdk

https://developer.fermyon.com/spin/javascript-components
Apache License 2.0
52 stars 18 forks source link

Improve error messages for unimplemented functions #168

Closed lann closed 1 month ago

lann commented 1 year ago

https://discord.com/channels/926888690310053918/1109846409118748693

Currently it appears that unimplemented runtime functions give the somewhat confusing error: Handler returned an error: Uncaught TypeError: not a function (i.e. "you tried to call undefined")

I wonder if we could stub out at least some common APIs to give more helpful error messages.

karthik2804 commented 1 month ago

This should be improved in v2 SDK as we now use StarlingMonkey as the engine.