1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00
serenity/Base/home/anon/js
Andreas Kling 7912f33ea0 LibJS: Add NativeFunction, a callable wrapper around a C++ lambda
This can be used to implement arbitrary functionality, callable from
JavaScript.

To make this work, I had to change the way CallExpression passes
arguments to the callee. Instead of a HashMap<String, Value>, we now
pass an ordered list of Argument { String name; Value value; }.

This patch includes a native "print(argument)" function. :^)
2020-03-12 19:54:47 +01:00
..
for-loop.js Meta: Add for-loop JavaScript test program 2020-03-12 13:42:23 +01:00
forced-gc.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
function-with-arguments.js LibJS: Add test for function with arguments 2020-03-12 13:27:28 +01:00
native-function.js LibJS: Add NativeFunction, a callable wrapper around a C++ lambda 2020-03-12 19:54:47 +01:00
simple-function.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-parse.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-scopes.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
simple-variables.js js: Take the script file as a command-line argument 2020-03-12 10:52:47 +01:00
string-length.js LibJS: Implement basic MemberExpression parsing 2020-03-12 13:05:57 +01:00