Skip to content
Commit 9e4be71f authored by Andrew Price's avatar Andrew Price
Browse files

duktape: Make backtraces more useful

Use duk_pcompile_string_filename() and duk_pcall() instead of
duk_peval() so we get the filename in js backtraces:

  mwjs error: RangeError: execution timeout
      at [anon] (duktape.c:72259) internal
      at fooCmd (.mw-script/mw.js:20) preventsyield
parent 89b6c0e3
Loading
Loading
Loading
Pipeline #284 passed with stage
in 10 minutes and 18 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment