diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-12 19:53:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-12 19:54:47 +0100 |
commit | 7912f33ea0c223b88ff79ad4c072ec87dd0c29c4 (patch) | |
tree | c5c1b67c6dcf6605b02d2eb4a5f52be4fc956499 /Tests/Kernel/path-resolution-race.cpp | |
parent | cc8e3048bc7d807154765297d4bf381f368bf3ed (diff) | |
download | serenity-7912f33ea0c223b88ff79ad4c072ec87dd0c29c4.zip |
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. :^)
Diffstat (limited to 'Tests/Kernel/path-resolution-race.cpp')
0 files changed, 0 insertions, 0 deletions