diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/RegExpObject.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/RegExpObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/RegExpObject.cpp b/Libraries/LibJS/Runtime/RegExpObject.cpp index 34637e398b..b41d0a767d 100644 --- a/Libraries/LibJS/Runtime/RegExpObject.cpp +++ b/Libraries/LibJS/Runtime/RegExpObject.cpp @@ -52,7 +52,7 @@ RegExpObject::~RegExpObject() Value RegExpObject::to_string() const { - return js_string(interpreter(), String::format("/%s/%s", content().characters(), flags().characters())); + return js_string(heap(), String::format("/%s/%s", content().characters(), flags().characters())); } } |