Commit 32c3bac
Make collect-strings script compatible with Node v24
According to [1], `import.meta.main` is now a boolean in Node 24, and we
can just check its state directly without checking against
`import.meta.url`. This CL updates this logic per Node 24 so that our
collect-string script runs correctly.
[1]: https://nodejs.org/en/blog/release/v24.2.0#importmetamain-is-now-available
Bug: 480724539
Change-Id: Iafd721d604dc5c63a34eecedd3c1a9d9f21692d4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7548063
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>1 parent 4d17fb0 commit 32c3bac
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
| 744 | + | |
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| |||
0 commit comments