This is really strange. Comments in my script seem to be getting removed. For example:
// test1
/* test2 */
let s = `"use strict";
// test3
/* test4 */
foo();
`;
console.log(s);
This prints:
"use strict"
/* test4 */
foo();
The string "s" is missing the "// test3" line, and viewing it in the debugger, "// test1" is also missing.
This makes debugging harder (my comments are missing), and it breaks console logs and many debugger features since it strips out my sourceURLs. Any idea what's happening?
@ppixiv This issue seems to be due to remove the comments when processing scripts to reduce the size of the script transfer, thanks for the feedback, this will be fixed in a later release.
This is really strange. Comments in my script seem to be getting removed. For example:
This prints:
The string "s" is missing the "// test3" line, and viewing it in the debugger, "// test1" is also missing.
This makes debugging harder (my comments are missing), and it breaks console logs and many debugger features since it strips out my sourceURLs. Any idea what's happening?
(iPhone 14, iOS 16.1, version 2.3.4)