chakra-core / chakra-core/ChakraCore

Calling JsCallFunction with arguments?

Open
#6,784 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

I'm working on a "Script Loader" that loads .js files from a specific path and runs the code within through the chakra environment, with this I've been able to make something like for the script:

function onTick() {
// Do Stuff
};

and have a tick on the C++ end that not only finds this function in the script but then executes it.

But I wanted to know was how I can pass arguments through the function call (on the C++ end) like:

function onTick(objectOfSomething) {
// Do stuff with the passed variable
};

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.