The native String#split implementation does not pay attention to surrogate pairs. When the code units of a surrogate pair are split apart, they are not intelligible on their own. Unless they are put ...
produces a guaranteed standard-compliant UTF16 output stream, which can be stored or transmitted as a JavaScript string. A proprocessor accepts arbitrary JavaScript structures as input, allowing this ...