- std::stringstream value(CYPoolCString(pool, context, arguments[0]));
- CYUTF8String code(CYPoolCode(pool, value));
- return CYCastJSValue(context, CYJSString(code));
+ CYUTF8String before(CYPoolUTF8String(pool, context, CYJSString(context, arguments[0])));
+ std::stringstream value(std::string(before.data, before.size));
+ CYUTF8String after(CYPoolCode(pool, value));
+ return CYCastJSValue(context, CYJSString(after));