@@ -412,6 +412,8 @@ void JS_ComputeMemoryUsage(JSRuntime *rt, JSMemoryUsage *s);
412412void JS_DumpMemoryUsage (FILE * fp , const JSMemoryUsage * s , JSRuntime * rt );
413413
414414/* atom support */
415+ #define JS_ATOM_NULL 0
416+
415417JSAtom JS_NewAtomLen (JSContext * ctx , const char * str , size_t len );
416418JSAtom JS_NewAtom (JSContext * ctx , const char * str );
417419JSAtom JS_NewAtomUInt32 (JSContext * ctx , uint32_t n );
@@ -835,6 +837,8 @@ typedef int JSInterruptHandler(JSRuntime *rt, void *opaque);
835837void JS_SetInterruptHandler (JSRuntime * rt , JSInterruptHandler * cb , void * opaque );
836838/* if can_block is TRUE, Atomics.wait() can be used */
837839void JS_SetCanBlock (JSRuntime * rt , JS_BOOL can_block );
840+ /* set the [IsHTMLDDA] internal slot */
841+ void JS_SetIsHTMLDDA (JSContext * ctx , JSValueConst obj );
838842
839843typedef struct JSModuleDef JSModuleDef ;
840844
@@ -886,6 +890,12 @@ JSValue JS_ReadObject(JSContext *ctx, const uint8_t *buf, size_t buf_len,
886890 returns a module. */
887891int JS_ResolveModule (JSContext * ctx , JSValueConst obj );
888892
893+ /* only exported for os.Worker() */
894+ JSAtom JS_GetScriptOrModuleName (JSContext * ctx , int n_stack_levels );
895+ /* only exported for os.Worker() */
896+ JSModuleDef * JS_RunModule (JSContext * ctx , const char * basename ,
897+ const char * filename );
898+
889899/* C function definition */
890900typedef enum JSCFunctionEnum { /* XXX: should rename for namespace isolation */
891901 JS_CFUNC_generic ,
0 commit comments