blob: 6874c093a75c46598a21dca3a13bc28dc3853d7a [file] [edit]
let string = $vm.make16BitStringIfPossible("test");
if (is8BitString(string))
throw new Error("Should be 16 bit");
object = { };
object.foo = string;
let stringified = JSON.stringify(object);
if (!is8BitString(stringified))
throw new Error("JSON.stringify should have produced an 8-bit string");