| 867 | |
| 868 | JS_EXTERN JSValue JS_NewStringLen(JSContext *ctx, const char *str1, size_t len1); |
| 869 | static 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 |
| 874 | JS_EXTERN JSValue JS_NewStringUTF16(JSContext *ctx, const uint16_t *buf, |
no outgoing calls