Commit b00c087
deps: V8: cherry-pick e74d0f437fcd
Original commit message:
[api] add v8::Isolate::GetDefaultLocale()
This allows embedders to query the default locale used by Intl
APIs.
This information is already available to user land via
Intl?.Collator().resolvedOptions().locale, the issue with this
is that it's a lot slower and requires dynamic access to Intl
API, which is subject to patching and prototype pollution so it's
not as reliable for embedders than having a V8 API to query
the default locale directly.
Refs: #54279
Change-Id: I5a1823993c9ae79f8f61f54c6464daf882a09ba3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5772938
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Cr-Commit-Position: refs/heads/main@{#95678}
Refs: v8/v8@e74d0f4
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 c10aff6 commit b00c087Copy full SHA for b00c087
File tree
Expand file treeCollapse file tree
3 files changed
+19
-1
lines changedOpen diff view settings
Filter options
- deps/v8
- include
- src/api
Expand file treeCollapse file tree
3 files changed
+19
-1
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
40 | 40 | |
41 | 41 | |
42 | 42 | |
|
Collapse file
deps/v8/include/v8-isolate.h
Copy file name to clipboardExpand all lines: deps/v8/include/v8-isolate.h+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
13 | 14 | |
14 | 15 | |
| ||
1711 | 1712 | |
1712 | 1713 | |
1713 | 1714 | |
| 1715 | + |
| 1716 | + |
| 1717 | + |
| 1718 | + |
| 1719 | + |
| 1720 | + |
1714 | 1721 | |
1715 | 1722 | |
1716 | 1723 | |
|
Collapse file
+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10577 | 10577 | |
10578 | 10578 | |
10579 | 10579 | |
| 10580 | + |
| 10581 | + |
| 10582 | + |
| 10583 | + |
| 10584 | + |
| 10585 | + |
| 10586 | + |
| 10587 | + |
| 10588 | + |
| 10589 | + |
| 10590 | + |
10580 | 10591 | |
10581 | 10592 | |
10582 | 10593 | |
|
0 commit comments