summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/SymbolConstructor.cpp
diff options
context:
space:
mode:
authorMatthew Olsson <matthewcolsson@gmail.com>2020-06-25 15:30:58 -0700
committerAndreas Kling <kling@serenityos.org>2020-07-01 11:16:37 +0200
commitbda39ef7ab3e05ce0d005721b0622aa52a2a6cbe (patch)
treef9ae55a919b8f9cafccf558c6c26318b61ad49f9 /Libraries/LibJS/Runtime/SymbolConstructor.cpp
parent19411e22d0d988897caf10e07c948eb203166573 (diff)
downloadserenity-bda39ef7ab3e05ce0d005721b0622aa52a2a6cbe.zip
LibJS: Explicitly pass a "Function& new_target" to Function::construct
This allows the proxy handler to pass the proper new.target to construct handlers.
Diffstat (limited to 'Libraries/LibJS/Runtime/SymbolConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/SymbolConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/SymbolConstructor.cpp b/Libraries/LibJS/Runtime/SymbolConstructor.cpp
index 9080b2d56b..0e051128e2 100644
--- a/Libraries/LibJS/Runtime/SymbolConstructor.cpp
+++ b/Libraries/LibJS/Runtime/SymbolConstructor.cpp
@@ -74,7 +74,7 @@ Value SymbolConstructor::call(Interpreter& interpreter)
return js_symbol(interpreter, interpreter.argument(0).to_string(interpreter), false);
}
-Value SymbolConstructor::construct(Interpreter& interpreter)
+Value SymbolConstructor::construct(Interpreter& interpreter, Function&)
{
interpreter.throw_exception<TypeError>(ErrorType::NotAConstructor, "Symbol");
return {};