diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/PrimitiveString.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/PrimitiveString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/PrimitiveString.cpp b/Libraries/LibJS/Runtime/PrimitiveString.cpp index 76c8024121..428295e861 100644 --- a/Libraries/LibJS/Runtime/PrimitiveString.cpp +++ b/Libraries/LibJS/Runtime/PrimitiveString.cpp @@ -41,7 +41,7 @@ PrimitiveString::~PrimitiveString() PrimitiveString* js_string(Heap& heap, String string) { - return heap.allocate<PrimitiveString>(move(string)); + return heap.allocate<PrimitiveString>(heap.interpreter().global_object(), move(string)); } PrimitiveString* js_string(Interpreter& interpreter, String string) |