Skip to content

Call an interpreted function #153

@fpelliccioni

Description

@fpelliccioni

Hello,

I have the following Javascript code that I am interpreting using your library:

callback(function(x, y) { return x < y; });

I had setup a wrapper function this way:

var callback_wrapper = function(cb) {
    // **1
};

interpreter.setProperty(scope, 'callback',    interpreter.createNativeFunction(callback_wrapper));

I want to call the function passed to callback() inside the callback_wrapper() (**1).
Is it possible?
How can I do it?

Thanks in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions