Closed niknetniko closed 1 year ago
@niknetniko Furthering on this: I try to understand the new stack trace for this example, but what would the <anonymous>
in at Array.map (<anonymous>)
mean? Is this a reference to the anonymous function that is passed on line 98, hence also the lack of a function name in the third line of the stack track (at <code>:98:32
)?
what would the
<anonymous>
inat Array.map (<anonymous>)
mean? Is this a reference to the anonymous function on that is passed on line 98, hence also the lack of a function name in the third line of the stack track (at <code>:98:32
)?
I would assume it is indeed due to the map, as those parts are from the original stack trace we receive from NodeJS. For reference, this is the "raw" stack trace for this example:
AssertionError [ERR_ASSERTION]: ongeldig bericht
at bigram2letter (/home/niko/Ontwikkeling/universal-judge/workdir/execution00/submission.js:86:13)
at /home/niko/Ontwikkeling/universal-judge/workdir/execution00/submission.js:98:32
at Array.map (<anonymous>)
at Codeersleutel.decodeer (/home/niko/Ontwikkeling/universal-judge/workdir/execution00/submission.js:98:18)
at context0 (/home/niko/Ontwikkeling/universal-judge/workdir/execution00/execution00.js:78:31)
at async /home/niko/Ontwikkeling/universal-judge/workdir/execution00/execution00.js:1515:13
This is "normal" for js traces which is why some style guides recommend always naming your inline functions.
Fixes #346.
Before:
After: