diff --git a/Libraries/LibJS/Interpreter.cpp b/Libraries/LibJS/Interpreter.cpp index c39de4b998..6ca033c0e0 100644 --- a/Libraries/LibJS/Interpreter.cpp +++ b/Libraries/LibJS/Interpreter.cpp @@ -40,6 +40,8 @@ #include #include +//#define INTERPRETER_DEBUG + namespace JS { Interpreter::Interpreter() @@ -299,7 +301,7 @@ Value Interpreter::construct(Function& function, Function& new_target, Optional< Value Interpreter::throw_exception(Exception* exception) { -#ifdef __serenity__ +#ifdef INTERPRETER_DEBUG if (exception->value().is_object() && exception->value().as_object().is_error()) { auto& error = static_cast(exception->value().as_object()); dbg() << "Throwing JavaScript Error: " << error.name() << ", " << error.message();