summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/Function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/Function.cpp')
-rw-r--r--Libraries/LibJS/Runtime/Function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/Function.cpp b/Libraries/LibJS/Runtime/Function.cpp
index a698aba6ef..24ce9dc26f 100644
--- a/Libraries/LibJS/Runtime/Function.cpp
+++ b/Libraries/LibJS/Runtime/Function.cpp
@@ -60,7 +60,7 @@ BoundFunction* Function::bind(Value bound_this_value, Vector<Value> arguments)
// FIXME: Null or undefined should be passed through in strict mode.
return &interpreter().global_object();
default:
- return bound_this_value.to_object(interpreter().heap());
+ return bound_this_value.to_object(interpreter());
}
}();