Skip to content

Commit

Permalink
Use call of GcObject
Browse files Browse the repository at this point in the history
  • Loading branch information
raskad committed Aug 15, 2021
1 parent 4ab2142 commit 8a1feb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/builtins/string/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 8a1feb9

Please sign in to comment.