Variable: EvalFlags
February 16, 2026 ยท View on GitHub
quickjs-emscripten / quickjs-emscripten-core / EvalFlags
Variable: EvalFlags
EvalFlags:
object
Defined in: packages/quickjs-ffi-types/src/ffi-types.ts:106
Bitfield options for JS_Eval() C function.
Type Declaration
JS_EVAL_FLAG_BACKTRACE_BARRIER
readonlyJS_EVAL_FLAG_BACKTRACE_BARRIER:number
don't include the stack frames before this eval in the Error() backtraces
JS_EVAL_FLAG_COMPILE_ONLY
readonlyJS_EVAL_FLAG_COMPILE_ONLY:number
compile but do not run. The result is an object with a JS_TAG_FUNCTION_BYTECODE or JS_TAG_MODULE tag. It can be executed with JS_EvalFunction().
JS_EVAL_FLAG_STRICT
readonlyJS_EVAL_FLAG_STRICT:number
force 'strict' mode
JS_EVAL_FLAG_STRIP
readonlyJS_EVAL_FLAG_STRIP:number
force 'strip' mode
JS_EVAL_TYPE_DIRECT
readonlyJS_EVAL_TYPE_DIRECT:number
direct call (internal use)
JS_EVAL_TYPE_GLOBAL
readonlyJS_EVAL_TYPE_GLOBAL:number
global code (default)
JS_EVAL_TYPE_INDIRECT
readonlyJS_EVAL_TYPE_INDIRECT:number
indirect call (internal use)
JS_EVAL_TYPE_MASK
readonlyJS_EVAL_TYPE_MASK:number
JS_EVAL_TYPE_MODULE
readonlyJS_EVAL_TYPE_MODULE:number
module code