js: Change wording from "Exception caught" to "Uncaught exception" :^)

As Sergey pointed out, these exceptions are actually *not* caught!
This commit is contained in:
Andreas Kling 2020-04-02 15:25:08 +02:00
commit 57f72f2982
Notes: sideshowbarker 2024-07-19 07:59:29 +09:00

View file

@ -280,7 +280,7 @@ void repl(JS::Interpreter& interpreter)
auto result = interpreter.run(*program); auto result = interpreter.run(*program);
if (interpreter.exception()) { if (interpreter.exception()) {
printf("Exception caught: "); printf("Uncaught exception: ");
print(interpreter.exception()->value()); print(interpreter.exception()->value());
interpreter.clear_exception(); interpreter.clear_exception();
} else { } else {