Kode / Krom

Other
96 stars 23 forks source link

Print exception message #121

Closed luboslenco closed 5 years ago

luboslenco commented 5 years ago

Krom prints a pretty exception message again.

Uncaught exception:
        a.b = 1;
        ^
TypeError: Unable to set property 'b' of undefined or null reference
   at Main.main (krom.js:90:2)

The only cumbersome thing is that I am including the jserr.rc2 file. Otherwise it is being generated here, I am not sure if there is a nice way to automate that in korefile.

Depends on: https://github.com/Kode/koremake/pull/68, https://github.com/Kode/ChakraCore/pull/3.

Fixes https://github.com/Kode/Krom/issues/96.