summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-21 18:02:29 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-23 13:58:30 +0100
commit7856886ed5953e35a210c2b95cb9fdc8d3bb0c60 (patch)
tree3ee62f9cfe8c52b465e7d4119ee3db5773b86cf8 /Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
parentab6796691f47aa6eebc591038303f3d817f81dbd (diff)
downloadserenity-7856886ed5953e35a210c2b95cb9fdc8d3bb0c60.zip
LibJS: Replace GlobalObject with VM in String AOs [Part 17/19]
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GlobalObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
index 0e76535f5a..2c802a2430 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
@@ -394,7 +394,7 @@ JS_DEFINE_NATIVE_FUNCTION(GlobalObject::parse_float)
if (vm.argument(0).is_number())
return vm.argument(0);
auto input_string = TRY(vm.argument(0).to_string(vm));
- auto trimmed_string = MUST(trim_string(global_object, js_string(vm, input_string), TrimMode::Left));
+ auto trimmed_string = MUST(trim_string(vm, js_string(vm, input_string), TrimMode::Left));
for (size_t length = trimmed_string.length(); length > 0; --length) {
auto number = MUST(Value(js_string(vm, trimmed_string.substring(0, length))).to_number(vm));
if (!number.is_nan())
@@ -410,7 +410,7 @@ JS_DEFINE_NATIVE_FUNCTION(GlobalObject::parse_int)
auto input_string = TRY(vm.argument(0).to_string(vm));
// 2. Let S be ! TrimString(inputString, start).
- auto string = MUST(trim_string(global_object, js_string(vm, input_string), TrimMode::Left));
+ auto string = MUST(trim_string(vm, js_string(vm, input_string), TrimMode::Left));
// 3. Let sign be 1.
auto sign = 1;