lib: fix module print timing when specifier includes "#55150
lib: fix module print timing when specifier includes "#55150nodejs-github-bot merged 2 commits intonodejs:mainfrom
"#55150Conversation
|
From what I remember, almost all places that use/expose trace labels are susceptible to this issue, I don't remember exactly the places but I think could be something worthy to take a double look. Fixing this implementation also fixes the |
Do you have an example? Naive testing ( |
|
@aduh95 The generated logs are in json, and the json file is broken. Edit2: I'm okay with adding tests in another PR (since the CI of this PR is already green) |
|
Landed in 78f421d |
PR-URL: #55150 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
PR-URL: nodejs#55150 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
PR-URL: nodejs#55150 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
PR-URL: nodejs#55150 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
PR-URL: nodejs#55150 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
PR-URL: nodejs#55150 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
|
Tentatively backport in #56927 to reduce conflicts. Though this is not very essential and might get dropped. |

Currently, we generate invalid JSON if the specifier contains
", this can be addressed by escaping all double quotes like this PR is doing.