From 8a1feb9733d09821a5e774c39cc34d480969f865 Mon Sep 17 00:00:00 2001 From: raskad <32105367+raskad@users.noreply.github.com> Date: Sun, 15 Aug 2021 04:49:16 +0200 Subject: [PATCH] Use `call` of GcObject --- boa/src/builtins/string/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa/src/builtins/string/mod.rs b/boa/src/builtins/string/mod.rs index cc8f4004f9d..2525ebc451c 100644 --- a/boa/src/builtins/string/mod.rs +++ b/boa/src/builtins/string/mod.rs @@ -855,7 +855,7 @@ impl String { // d. If replacer is not undefined, then if let Some(replacer) = replacer { // i. Return ? Call(replacer, searchValue, « O, replaceValue »). - return context.call(&replacer.into(), &search_value, &[o.into(), replace_value]); + return replacer.call(&search_value, &[o.into(), replace_value], context); } }