mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Expose ctx->function_proto
This commit is contained in:
parent
36227a5310
commit
afeeebf89e
2 changed files with 6 additions and 0 deletions
|
@ -2319,6 +2319,11 @@ JSValue JS_GetClassProto(JSContext *ctx, JSClassID class_id)
|
||||||
return js_dup(ctx->class_proto[class_id]);
|
return js_dup(ctx->class_proto[class_id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JSValue JS_GetFunctionProto(JSContext *ctx)
|
||||||
|
{
|
||||||
|
return js_dup(ctx->function_proto);
|
||||||
|
}
|
||||||
|
|
||||||
typedef enum JSFreeModuleEnum {
|
typedef enum JSFreeModuleEnum {
|
||||||
JS_FREE_MODULE_ALL,
|
JS_FREE_MODULE_ALL,
|
||||||
JS_FREE_MODULE_NOT_RESOLVED,
|
JS_FREE_MODULE_NOT_RESOLVED,
|
||||||
|
|
|
@ -326,6 +326,7 @@ JS_EXTERN void JS_SetContextOpaque(JSContext *ctx, void *opaque);
|
||||||
JS_EXTERN JSRuntime *JS_GetRuntime(JSContext *ctx);
|
JS_EXTERN JSRuntime *JS_GetRuntime(JSContext *ctx);
|
||||||
JS_EXTERN void JS_SetClassProto(JSContext *ctx, JSClassID class_id, JSValue obj);
|
JS_EXTERN void JS_SetClassProto(JSContext *ctx, JSClassID class_id, JSValue obj);
|
||||||
JS_EXTERN JSValue JS_GetClassProto(JSContext *ctx, JSClassID class_id);
|
JS_EXTERN JSValue JS_GetClassProto(JSContext *ctx, JSClassID class_id);
|
||||||
|
JS_EXTERN JSValue JS_GetFunctionProto(JSContext *ctx);
|
||||||
|
|
||||||
/* the following functions are used to select the intrinsic object to
|
/* the following functions are used to select the intrinsic object to
|
||||||
save memory */
|
save memory */
|
||||||
|
|
Loading…
Reference in a new issue