GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: V8: cherry-pick e74d0f437fcd · nodejs/node@b00c087

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • common.gypi
  • deps/v8
    • include
      • v8-isolate.h
    • src/api
      • api.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎common.gypi‎

Copy file name to clipboardExpand all lines: common.gypi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.18',
39+
'v8_embedder_string': '-node.19',
4040

4141
##### V8 defaults for Node.js #####
4242

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 numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <stdint.h>
1010

1111
#include <memory>
12+
#include <string>
1213
#include <utility>
1314

1415
#include "cppgc/common.h"
@@ -1711,6 +1712,12 @@ class V8_EXPORT Isolate {
17111712
*/
17121713
void LocaleConfigurationChangeNotification();
17131714

1715+
/**
1716+
* Returns the default locale in a string if Intl support is enabled.
1717+
* Otherwise returns an empty string.
1718+
*/
1719+
std::string GetDefaultLocale();
1720+
17141721
Isolate() = delete;
17151722
~Isolate() = delete;
17161723
Isolate(const Isolate&) = delete;
Collapse file

‎deps/v8/src/api/api.cc‎

Copy file name to clipboardExpand all lines: deps/v8/src/api/api.cc
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10577,6 +10577,17 @@ void v8::Isolate::LocaleConfigurationChangeNotification() {
1057710577
#endif // V8_INTL_SUPPORT
1057810578
}
1057910579

10580+
std::string Isolate::GetDefaultLocale() {
10581+
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(this);
10582+
ENTER_V8_NO_SCRIPT_NO_EXCEPTION(i_isolate);
10583+
10584+
#ifdef V8_INTL_SUPPORT
10585+
return i_isolate->DefaultLocale();
10586+
#else
10587+
return std::string();
10588+
#endif
10589+
}
10590+
1058010591
#if defined(V8_OS_WIN) && defined(V8_ENABLE_ETW_STACK_WALKING)
1058110592
void Isolate::SetFilterETWSessionByURLCallback(
1058210593
FilterETWSessionByURLCallback callback) {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.