-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
src,lib,test: unflag --experimental-webstorage by default #57666
base: main
Are you sure you want to change the base?
src,lib,test: unflag --experimental-webstorage by default #57666
Conversation
Review requested:
|
To fix the failing test, I would change the error being throw in lib/internal/webstorage.js in a warning, and have @cjihrig wdyt? |
I would be OK with that behavior. However, the global checking logic in |
I just pushed the suggested changes, and the tests are now passing. @cjihrig, could you please review whether the changes in |
Without running the code, it doesn't look correct to me:
By the time we find out that the value is |
Yeah, that's right. I'll take a look on how to avoid the warning to be emitted in those cases. |
b925ca4
to
db0cda3
Compare
@cjihrig Could you take a look now and see if this is closer to what you were expecting? I added a new check to |
Moving this as ready for review. I think we should possibly also update |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57666 +/- ##
==========================================
- Coverage 90.24% 90.23% -0.02%
==========================================
Files 630 630
Lines 185198 185205 +7
Branches 36295 36304 +9
==========================================
- Hits 167140 167126 -14
- Misses 10987 10994 +7
- Partials 7071 7085 +14
🚀 New features to boost your workflow:
|
A few tests needs fixing but this is good progress! |
ce12b27
to
67c3460
Compare
67c3460
to
1857c7f
Compare
const getLocalStorage = Object.defineProperty(() => {}, 'name', { | ||
value: 'get localStorage', | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels a bit hacky, but I wasn’t able to find a better solution. Happy to hear any suggestions.
Resolves #57658