jschar is the type of JavaScript "characters", the 16-bit elements that make up strings. It is a 16-bit unsigned integer type.

As required by the ECMAScript standard, ECMA 262-3 ยง4.3.16, JavaScript strings are arbitrary sequences of 16-bit values. A string may contain unmatched surrogates, which are not valid UTF-16. It may also contain zeroes ('\0').

To get the characters of a JavaScript string, use JS_GetStringChars.

Document Tags and Contributors

Contributors to this page: Jorend
Last updated by: Jorend,