Commit f8cbbc6
src: use v8::Isolate::GetDefaultLocale() to compute navigator.language
Using the Intl API to get the default locale slows down the startup
significantly. This patch uses a new v8 API to get the default locale
directly.
PR-URL: #54279
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent b00c087 commit f8cbbc6Copy full SHA for f8cbbc6
File tree
Expand file treeCollapse file tree
4 files changed
+26
-9
lines changedOpen diff view settings
Filter options
- lib/internal
- process
- src
Expand file treeCollapse file tree
4 files changed
+26
-9
lines changedOpen diff view settings
Collapse file
+4-2Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
| 33 | + |
34 | 34 | |
35 | 35 | |
36 | 36 | |
| ||
104 | 104 | |
105 | 105 | |
106 | 106 | |
107 | | - |
| 107 | + |
| 108 | + |
| 109 | + |
108 | 110 | |
109 | 111 | |
110 | 112 | |
|
Collapse file
lib/internal/process/pre_execution.js
Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js-5Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | 24 | |
29 | 25 | |
30 | 26 | |
| ||
347 | 343 | |
348 | 344 | |
349 | 345 | |
350 | | - |
351 | 346 | |
352 | 347 | |
353 | 348 | |
|
Collapse file
+21-2Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
8 | 9 | |
9 | 10 | |
10 | 11 | |
11 | 12 | |
| 13 | + |
12 | 14 | |
13 | 15 | |
14 | 16 | |
15 | 17 | |
16 | 18 | |
17 | 19 | |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
18 | 30 | |
19 | 31 | |
20 | 32 | |
| ||
23 | 35 | |
24 | 36 | |
25 | 37 | |
26 | | - |
| 38 | + |
27 | 39 | |
28 | 40 | |
29 | 41 | |
| ||
76 | 88 | |
77 | 89 | |
78 | 90 | |
| 91 | + |
| 92 | + |
79 | 93 | |
80 | 94 | |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
81 | 99 | |
82 | 100 | |
83 | | - |
| 101 | + |
| 102 | + |
Collapse file
src/node_external_reference.h
Copy file name to clipboardExpand all lines: src/node_external_reference.h+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
139 | 139 | |
140 | 140 | |
141 | 141 | |
| 142 | + |
142 | 143 | |
143 | 144 | |
144 | 145 | |
|
0 commit comments