From f4129ac422a2ed7795d1b3f7a368277aed4b4754 Mon Sep 17 00:00:00 2001 From: Jack Karamanian Date: Sat, 30 May 2020 01:07:02 -0500 Subject: LibJS: Use the function's bound |this| and bound arguments in Interpreter::call() --- Libraries/LibJS/Interpreter.cpp | 5 +++-- Libraries/LibJS/Tests/Function.prototype.bind.js | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'Libraries') diff --git a/Libraries/LibJS/Interpreter.cpp b/Libraries/LibJS/Interpreter.cpp index 28b52900f6..d7b3a51fa5 100644 --- a/Libraries/LibJS/Interpreter.cpp +++ b/Libraries/LibJS/Interpreter.cpp @@ -207,9 +207,10 @@ Value Interpreter::call(Function& function, Value this_value, Optional