mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 22:02:33 +00:00

PR-URL: https://github.com/nodejs/node/pull/11752 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
24 lines
493 B
Plaintext
24 lines
493 B
Plaintext
Check that setScriptSource completes correctly when an exception is thrown.
|
|
|
|
Running test: testIncorrectScriptId
|
|
{
|
|
error : {
|
|
code : -32000
|
|
message : Uncaught Script not found
|
|
}
|
|
id : <messageId>
|
|
}
|
|
|
|
Running test: testSourceWithSyntaxError
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
exceptionDetails : {
|
|
columnNumber : 2
|
|
exceptionId : <exceptionId>
|
|
lineNumber : 0
|
|
text : Invalid or unexpected token
|
|
}
|
|
}
|
|
}
|