FixNative Documentation

Back to summary

import "native/web";

JSFunction class

This class allow to dynamically create JavaScript functions.

Initialization

static function create(src: String): JSFunction
Creates a new JavaScript function with given source code. The function must read any parameters from a given pointer and store any results using the pointer as well. The functions are created permanently, never deallocated.
function call(ptr: Pointer)
Calls the function using a pointer to pass any parameters and return values.