summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Interpreter.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-21 13:36:32 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-21 14:35:12 +0200
commitdf3ff76815893104eb1c2686c4e51d70793c28f3 (patch)
tree258d19ed12f4949fe71d327ccd4c8fa1c8597ba8 /Libraries/LibJS/Interpreter.h
parentb7ce0680ddf1cb7135874eefa8ab5d75e9af2850 (diff)
downloadserenity-df3ff76815893104eb1c2686c4e51d70793c28f3.zip
LibJS: Rename InterpreterScope => InterpreterExecutionScope
To make it a little clearer what this is for. (This is an RAII helper class for adding and removing an Interpreter to a VM's list of the currently active (executing code) Interpreters.)
Diffstat (limited to 'Libraries/LibJS/Interpreter.h')
-rw-r--r--Libraries/LibJS/Interpreter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Interpreter.h b/Libraries/LibJS/Interpreter.h
index 86a90bdc51..645520ed01 100644
--- a/Libraries/LibJS/Interpreter.h
+++ b/Libraries/LibJS/Interpreter.h
@@ -81,7 +81,7 @@ public:
{
DeferGC defer_gc(vm.heap());
auto interpreter = adopt_own(*new Interpreter(vm));
- VM::InterpreterScope scope(*interpreter);
+ VM::InterpreterExecutionScope scope(*interpreter);
interpreter->m_global_object = make_handle(static_cast<Object*>(interpreter->heap().allocate_without_global_object<GlobalObjectType>(forward<Args>(args)...)));
static_cast<GlobalObjectType*>(interpreter->m_global_object.cell())->initialize();
return interpreter;