Skip to content

inspector: coerce key and value to string in webstorage events#62616

Closed
thisalihassan wants to merge 1 commit intonodejs:mainfrom
thisalihassan:fix-dom-storage-inspector
Closed

inspector: coerce key and value to string in webstorage events#62616
thisalihassan wants to merge 1 commit intonodejs:mainfrom
thisalihassan:fix-dom-storage-inspector

Conversation

@thisalihassan
Copy link
Copy Markdown
Contributor

@thisalihassan thisalihassan commented Apr 6, 2026

it's this test is failing everywhere, I can also produce this on local
test-inspector-dom-storage
parallel


duration_ms: 86.899
exitcode: 1
severity: fail
stack: |-
Debugger listening on ws://127.0.0.1:35101/9a738d12-0f90-4667-8875-1f17ef781521
For help, see: https://nodejs.org/en/docs/inspector
node:inspector:212
emitProtocolEvent(eventName, params);
^

TypeError: Missing newValue in event
at broadcastToFrontend (node:inspector:212:3)
at Object.domStorageItemAdded (node:inspector:233:36)
at itemAdded (node:internal/inspector/webstorage:53:14)
at InspectorLocalStorage.setItem (node:internal/inspector/webstorage:13:7)
at test (/home/iojs/build/workspace/node-test-commit-linuxone/test/parallel/test-inspector-dom-storage.js:75:16)
at async testGetData (/home/iojs/build/workspace/node-test-commit-linuxone/test/parallel/test-inspector-dom-storage.js:62:3)
at async test (/home/iojs/build/workspace/node-test-commit-linuxone/test/parallel/test-inspector-dom-storage.js:167:3)

Refs: #62145
Refs: #62162

Signed-off-by: Ali Hassan <ali-hassan27@outlook.com>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/inspector

@nodejs-github-bot nodejs-github-bot added inspector Issues and PRs related to the V8 inspector protocol needs-ci PRs that need a full CI run. labels Apr 6, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.78%. Comparing base (4f08c64) to head (5c043b0).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62616      +/-   ##
==========================================
+ Coverage   89.75%   89.78%   +0.03%     
==========================================
  Files         696      696              
  Lines      214812   214818       +6     
  Branches    41108    41116       +8     
==========================================
+ Hits       192801   192876      +75     
+ Misses      14120    14030      -90     
- Partials     7891     7912      +21     
Files with missing lines Coverage Δ
lib/internal/inspector/webstorage.js 100.00% <100.00%> (+39.25%) ⬆️

... and 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@jasnell jasnell added the fast-track PRs that do not need to wait for 72 hours to land. label Apr 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 6, 2026

Fast-track has been requested by @jasnell. Please 👍 to approve.

Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

jasnell pushed a commit that referenced this pull request Apr 6, 2026
Signed-off-by: Ali Hassan <ali-hassan27@outlook.com>
PR-URL: #62616
Refs: #62145
Refs: #62162
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@jasnell
Copy link
Copy Markdown
Member

jasnell commented Apr 6, 2026

Landed in 449a93a

@jasnell jasnell closed this Apr 6, 2026
aduh95 pushed a commit that referenced this pull request May 5, 2026
Signed-off-by: Ali Hassan <ali-hassan27@outlook.com>
PR-URL: #62616
Refs: #62145
Refs: #62162
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
thisalihassan added a commit to thisalihassan/node that referenced this pull request May 7, 2026
Signed-off-by: Ali Hassan <ali-hassan27@outlook.com>
PR-URL: nodejs#62616
Refs: nodejs#62145
Refs: nodejs#62162
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-track PRs that do not need to wait for 72 hours to land. inspector Issues and PRs related to the V8 inspector protocol needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants