| 882 | return JS_ToCStringLen2(ctx, plen, val1, 0); |
| 883 | } |
| 884 | static inline const char *JS_ToCString(JSContext *ctx, JSValueConst val1) |
| 885 | { |
| 886 | return JS_ToCStringLen2(ctx, NULL, val1, 0); |
| 887 | } |
| 888 | // returns a utf-16 version of the string in native endianness; the |
| 889 | // string is not nul terminated and can contain unmatched surrogates |
| 890 | // |*plen| is in uint16s, not code points; a surrogate pair such as |
no outgoing calls