diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-24 13:34:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-24 17:18:06 +0200 |
commit | c95dde971b7f0f5071ce778dc20da83cb15a6627 (patch) | |
tree | a8542f3fdd614da07e55190e86b0a4746110f615 /Userland/Libraries/LibJS/Bytecode/Interpreter.h | |
parent | da77e2aa4f993557174a09dbaa3a1f639db8ddec (diff) | |
download | serenity-c95dde971b7f0f5071ce778dc20da83cb15a6627.zip |
LibJS: Move global "should dump bytecode" flag into LibJS
This will allow us to trigger bytecode executable dumps when generating
bytecode inside LibJS as well, not just in clients like js and test-js.
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode/Interpreter.h')
-rw-r--r-- | Userland/Libraries/LibJS/Bytecode/Interpreter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.h b/Userland/Libraries/LibJS/Bytecode/Interpreter.h index f8faea9029..d32735fa6b 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.h +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.h @@ -85,4 +85,6 @@ private: Handle<Exception> m_saved_exception; }; +extern bool g_dump_bytecode; + } |