mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:15:06 +00:00
LibJS: Add Function() and Function.prototype
This commit is contained in:
parent
4d931b524d
commit
2944039d6b
15 changed files with 463 additions and 4 deletions
|
@ -24,16 +24,14 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <LibJS/Heap/Heap.h>
|
||||
#include <LibJS/Interpreter.h>
|
||||
#include <LibJS/Runtime/Function.h>
|
||||
#include <LibJS/Runtime/Value.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
Function::Function()
|
||||
{
|
||||
put("prototype", heap().allocate<Object>());
|
||||
set_prototype(interpreter().function_prototype());
|
||||
}
|
||||
|
||||
Function::~Function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue