Commit 87918fd
[WASM] JsInterop - Handle data string encoding error on negative bytes, and correct issue with js prototype global naming.
To do this, introduce a new overload `StringUtils.escapeAsUtf8(byte)` which always masks the byte to between 0 and 255 after promoting the byte to an int. The call in BazelJ2wasmBundler already passes a byte which was previously being converted to an int between -128 to 127.
PiperOrigin-RevId: 8632789451 parent 60f9d6f commit 87918fd
File tree
2 files changed
+5
-1
lines changed- transpiler/java/com/google/j2cl
- common
- transpiler/backend/wasm
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| |||
0 commit comments