diff options
author | Linus Groh <mail@linusgroh.de> | 2022-01-15 17:18:12 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-16 01:54:48 +0100 |
commit | 13fe4e8c64972ef91af9035a746f3fb55dff9c8e (patch) | |
tree | 409d4ce4e245db78ffafef343ac17ef15771fdba /Userland/Libraries/LibJS/Parser.cpp | |
parent | f0b2179bd79c4cd952ccad81e571307a6606b84e (diff) | |
download | serenity-13fe4e8c64972ef91af9035a746f3fb55dff9c8e.zip |
LibJS: Allow passing prototype to ECMAScriptFunctionObject::create()
This should have been the default as it roughly represents the
OrdinaryFunctionCreate AO.
For now, keep two overloads and continue to guess the required prototype
from the function kind in most cases. The prototype needs to be passed
in explicitly when it may be derived from user code, such as in the
CreateDynamicFunction AO.
Diffstat (limited to 'Userland/Libraries/LibJS/Parser.cpp')
0 files changed, 0 insertions, 0 deletions