-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unflag --experimental-webstorage #57658
Comments
cc @cjihrig |
SGTM |
Hey, could you give some guidance on what needs to be done to unflag diff --git a/src/node_options.cc b/src/node_options.cc
index 16cce0df0e..d30b0b87b6 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -456,7 +456,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
AddOption("--experimental-webstorage",
"experimental Web Storage API",
&EnvironmentOptions::experimental_webstorage,
- kAllowedInEnvvar);
+ kAllowedInEnvvar,
+ true);
AddOption("--localstorage-file",
"file used to persist localStorage data",
&EnvironmentOptions::localstorage_file,
diff --git a/src/node_options.h b/src/node_options.h
index baa615e310..07cda97d71 100644
--- a/src/node_options.h
+++ b/src/node_options.h
@@ -126,7 +126,7 @@ class EnvironmentOptions : public Options {
bool experimental_fetch = true;
bool experimental_websocket = true;
bool experimental_sqlite = true;
- bool experimental_webstorage = false;
+ bool experimental_webstorage = true;
#ifdef NODE_OPENSSL_HAS_QUIC
bool experimental_quic = false;
#endif This change works when running node directly: But the tests in EDIT: The tests fail with the following error:
|
Probably there is something else to fix. |
Can you push what you have in a draft PR? |
In test/common/index.js it adds localStorage to the globalThis, but this requires the localStorage file. seems like it has the same effect as |
I think we could start shipping with localStorage enabled by default in v25.
The text was updated successfully, but these errors were encountered: