| |||||||||
SummaryCreates a new JavaScript context. | |||||||||
SyntaxJSContext * JS_NewContext(JSRuntime *rt, size_t stacksize);
| |||||||||
DescriptionJS_NewContext creates a new JavaScript context for an executing script or thread. Each script or thread is associated with its own context, and each context must be associated with a specified JSRuntime , rt . A context specifies a stack size for the script, the amount, in bytes, of private memory to allocate to the execution stack for the script.
Generally you use
If a call to
| |||||||||
NotesOnce established, a context can be used any number of times for different scripts or threads so long as it's associated viaJS_SetContextThread with only one thread at a time.
| |||||||||
See Also
|