MCPcopy Create free account
hub / github.com/buke/quickjs-go / JS_NewString

Function JS_NewString

deps/quickjs/quickjs.h:869–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867
868JS_EXTERN JSValue JS_NewStringLen(JSContext *ctx, const char *str1, size_t len1);
869static inline JSValue JS_NewString(JSContext *ctx, const char *str) {
870 return JS_NewStringLen(ctx, str, strlen(str));
871}
872// makes a copy of the input; does not check if the input is valid UTF-16,
873// that is the responsibility of the caller
874JS_EXTERN JSValue JS_NewStringUTF16(JSContext *ctx, const uint16_t *buf,

Callers 12

js_std_getenvFunction · 0.85
js_std_getenvironFunction · 0.85
js_std_strerrorFunction · 0.85
make_string_errorFunction · 0.85
js_os_readdirFunction · 0.85
js_os_mkdstempFunction · 0.85
js_std_add_helpersFunction · 0.85
js_agent_getReportFunction · 0.85
JS_NewCustomContextFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

js_agent_getReportFunction · 0.68