Claude Bot
5571f5033e
fix(transpiler): preserve unicode characters in string literals ( #25169 )
...
Unicode characters in BMP range (≤ U+FFFF) are now preserved in
transpiled output instead of being escaped to \uXXXX sequences. This
fixes Function.toString() returning escaped unicode, which broke tools
like unplugin-vue-router that rely on reading source code from function
bodies.
Changes:
- js_printer.zig: Use ascii_only=false for string character printing
- VirtualMachine.zig: Detect non-ASCII UTF-8 and use cloneUTF8 instead
of treating bytes as Latin-1
- ModuleLoader.zig: Use cloneUTF8 for proper UTF-8 handling
Note: Supplementary characters (> U+FFFF like 🎉 ) are still escaped as
surrogate pairs due to JSC's UTF-16 string storage. This is a known
limitation.
Closes #25169
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-28 10:42:55 +00:00
..
2025-11-10 14:38:26 -08:00
2025-07-22 17:51:38 -07:00
2025-11-17 15:04:42 -05:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-11-20 20:56:02 -08:00
2025-07-22 17:51:38 -07:00
2025-11-28 10:42:55 +00:00
2025-11-23 20:27:15 -08:00
2025-11-23 00:34:27 -08:00
2025-11-24 23:34:16 -08:00
2025-11-19 21:20:55 -08:00
2025-11-10 14:38:26 -08:00
2025-11-18 14:02:21 -08:00
2025-11-20 20:56:02 -08:00
2025-11-10 14:38:26 -08:00
2025-07-22 17:51:38 -07:00
2025-11-23 01:41:17 -08:00
2025-11-26 15:11:45 -08:00
2025-11-21 14:06:19 -08:00
2025-11-27 18:12:07 -08:00
2025-11-19 21:20:55 -08:00
2025-11-10 14:38:26 -08:00
2025-11-28 17:51:45 +11:00
2025-07-21 13:26:47 -07:00
2025-11-10 14:38:26 -08:00
2025-10-03 17:10:28 -07:00
2025-11-17 11:23:13 -08:00
2025-11-24 20:16:03 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-11-18 14:02:21 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-15 16:36:15 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-06-04 19:41:26 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-10-04 02:17:55 -07:00
2025-10-31 19:50:55 -07:00
2025-11-26 00:02:43 -08:00
2025-11-05 15:28:28 -08:00
2025-07-29 19:35:46 -07:00
2025-11-10 14:38:26 -08:00
2025-07-22 17:51:38 -07:00
2025-10-23 23:08:08 -07:00
2025-04-17 14:17:08 -07:00
2025-07-22 17:51:38 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-07-20 23:04:17 -07:00
2025-11-26 00:02:43 -08:00
2025-11-18 10:49:21 -08:00
2025-11-25 11:06:24 -08:00
2025-06-12 14:20:28 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 19:58:02 -08:00
2025-10-24 23:42:20 -07:00
2025-11-21 14:06:19 -08:00
2025-09-26 15:19:45 -07:00
2025-11-18 10:49:21 -08:00
2025-10-29 19:29:04 -07:00
2025-11-03 22:20:07 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2025-11-20 20:56:02 -08:00
2025-07-21 13:26:47 -07:00
2025-09-26 22:21:00 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-07-21 13:26:47 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 19:58:02 -08:00
2025-11-20 23:37:31 -08:00
2025-11-10 14:38:26 -08:00
2025-05-08 23:22:16 -07:00
2025-11-18 10:49:21 -08:00
2025-10-23 23:08:08 -07:00
2025-05-08 23:22:16 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-08-23 06:55:30 -07:00
2025-10-04 00:31:47 -07:00
2025-11-10 14:38:26 -08:00
2025-10-02 14:11:29 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-07-22 17:51:38 -07:00
2025-09-09 20:41:10 -07:00
2025-11-26 15:11:45 -08:00
2025-07-09 00:19:57 -07:00
2025-10-14 20:51:34 -07:00
2025-11-10 14:38:26 -08:00
2025-08-23 06:55:30 -07:00
2025-07-22 17:51:38 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-28 10:42:55 +00:00
2025-11-10 14:38:26 -08:00
2025-03-26 23:57:10 -07:00
2025-11-10 14:38:26 -08:00
2025-10-23 23:08:08 -07:00
2025-11-10 14:38:26 -08:00
2025-02-18 10:38:37 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-10-18 18:14:01 -07:00
2025-11-10 14:38:26 -08:00
2025-07-22 17:51:38 -07:00
2025-09-14 04:14:48 -07:00
2025-11-17 15:04:42 -05:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-09-30 00:10:15 -07:00
2025-11-10 14:38:26 -08:00
2025-10-23 23:08:08 -07:00
2025-11-10 14:38:26 -08:00
2025-11-13 19:29:16 -08:00
2025-09-26 15:15:58 -07:00
2025-11-10 14:38:26 -08:00
2025-11-15 16:36:15 -08:00
2025-09-26 22:21:00 -07:00
2025-11-10 14:38:26 -08:00
2025-09-03 15:40:44 -07:00
2025-09-22 19:28:26 -07:00
2025-07-21 13:26:47 -07:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-11-10 14:38:26 -08:00
2025-11-23 01:42:32 -08:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-07-21 13:26:47 -07:00
2025-09-03 15:40:44 -07:00
2025-07-25 12:38:06 -07:00
2025-11-10 14:38:26 -08:00
2025-02-01 01:11:02 -08:00
2025-11-17 15:04:42 -05:00
2025-10-03 17:10:28 -07:00
2025-07-21 13:26:47 -07:00
2025-11-26 13:46:08 -08:00
2025-07-21 13:26:47 -07:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-07-22 17:51:38 -07:00
2025-08-11 20:19:34 -07:00
2025-07-20 23:04:17 -07:00
2025-11-18 10:49:21 -08:00
2025-07-21 13:26:47 -07:00
2025-11-10 14:38:26 -08:00
2025-07-21 13:26:47 -07:00
2025-11-10 14:38:26 -08:00