1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:27:35 +00:00

LibJS: Split Function into subclasses NativeFunction and ScriptFunction

Both types of functions are now Function and implement calling via:

    virtual Value call(Interpreter&, Vector<Value> arguments);

This removes the need for CallExpression::execute() to care about which
kind of function it's calling. :^)
This commit is contained in:
Andreas Kling 2020-03-13 10:08:52 +01:00
parent de6f697eba
commit d9c7009604
9 changed files with 133 additions and 42 deletions

View file

@ -11,6 +11,7 @@ OBJS = \
Object.o \
Parser.o \
PrimitiveString.o \
ScriptFunction.o \
StringObject.o \
Token.o \
Value.o