"major.minor.patch"
, where major,
minor, and patch are integer numbers.
js_create_interp()
is NULL
.
NULL
.
js_error_message()
.
js_result()
function.
NULL
, the generated assembler code is
saved to the file, specified by the argument. If the argument
byte_code_file is not NULL
, the generated byte-code data is
svaed to the file, specified by the argument.
Compile JavaScript code data, datalen to byte-code and return the resulting byte-code data in bc_return, bc_len_return.
Execute byte-code data bc, bc_len. The byte-code data is
the contents of a byte-code file, or a copy of the data returned by the
js_compile_to_byte_code()
or
js_compile_data_to_byte_code()
functions.
Note! You can't use the data from the
js_compile_to_byte_code()
, js_compile_data_to_byte_code()
functions as an input for this function. You must take a private copy
of the data and pass that copy to the function:
if (js_compile_to_byte_code (interp, file, &bc, &bclen)) { char *bc_copy = xmalloc (bclen); memcpy (bc_copy, bc, bclen); js_execute_byte_code (interp, bc_copy, bclen); xfree (bc_copy); }
Create a new class with class context data class_context. The
context data is destroyed with class_context_destructor. If the
argument no_auto_destroy is not 0, the JavaScript interpreter will
not destroy the class when the interpreter is destroyed. In
that case, it is the caller's responsibility to call
js_class_destroy()
for the returned class handle, after the
interpreter has been destroyed. If the argument constructor is
not NULL
, it is used to instantiate the class when a `new
class (
args[...]);
' expression is
evaluated in the JavaScript code.
Check if object object is an instance of class cls. The
function returns a boolean success status. If the argument
instance_context_return is not NULL
, it will be set to the
instance context of object object.
Go to the first, previous, next, last section, table of contents.