1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// Latin1 function f(someName) { someName(); } try { f(3); } catch(e) { assertEq(e.message.includes("someName"), true); } // TwoByte function g(someName\u1200) { someName\u1200(); } try { g(3); } catch(e) { // Note: string is deflated; don't check for the \u1200. assertEq(e.message.includes("someName"), true); }