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 — inspector: fixed V8InspectorClient::currentTimeMS method by alexkozy · Pull Request #21917 · nodejs/node

Conversation

@alexkozy

@alexkozy alexkozy commented Jul 21, 2018

Copy link
Copy Markdown
Member

On inspector side inside V8 we assume that this method should
return number of ms since epoch. It is important for different inspector parts,
e.g. timestamp of reported console messages.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alexkozy
inspector: fixed V8InspectorClient::currentTimeMS method
31a01fb
On inspector side inside V8 we assume that this method should
return number of ms since epoch.
@nodejs-github-bot

nodejs-github-bot commented Jul 21, 2018

Copy link
Copy Markdown
Collaborator

@ak239 build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/324/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy
alexkozy requested a review from eugeneo July 21, 2018 08:01
targos
targos approved these changes Jul 21, 2018
View reviewed changes
devsnek
devsnek approved these changes Jul 21, 2018
View reviewed changes
cjihrig
cjihrig approved these changes Jul 21, 2018
View reviewed changes
addaleax
addaleax approved these changes Jul 21, 2018
View reviewed changes
TimothyGu
TimothyGu approved these changes Jul 21, 2018
View reviewed changes
maclover7
maclover7 approved these changes Jul 22, 2018
View reviewed changes

@maclover7 maclover7 left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM if CI is green

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@maclover7

maclover7 commented Jul 22, 2018

Copy link
Copy Markdown
Contributor

CI: https://ci.nodejs.org/job/node-test-pull-request/15968/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maclover7 maclover7 added inspector Issues and PRs related to the V8 inspector protocol. author ready PRs with CI started, the required approvals, and no outstanding review comments. labels Jul 22, 2018
alexkozy added a commit that referenced this pull request Aug 2, 2018
@alexkozy
inspector: fixed V8InspectorClient::currentTimeMS
0ed164e
On inspector side inside V8 we assume that this method should
return number of ms since epoch.

PR-URL: #21917
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
@alexkozy

alexkozy commented Aug 2, 2018

Copy link
Copy Markdown
Member Author

Landed in 0ed164e

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy alexkozy closed this Aug 2, 2018
@alexkozy
alexkozy deleted the provide-correct-current-time branch August 2, 2018 05:06
targos pushed a commit that referenced this pull request Aug 2, 2018
@alexkozy @targos
inspector: fixed V8InspectorClient::currentTimeMS
311ec12
On inspector side inside V8 we assume that this method should
return number of ms since epoch.

PR-URL: #21917
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
@rvagg rvagg mentioned this pull request Aug 13, 2018
Release proposal: v10.9.0 #22295
Merged
This was referenced Aug 16, 2018
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-android-nodejs#230
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-nodejs#215
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-android-nodejs#231
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-nodejs#216
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-android-nodejs#232
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-nodejs#217
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-android-nodejs#233
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-nodejs#218
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-android-nodejs#234
Closed
2018-08-15 Version 10.9.0 (Current) @rvagg beevelop/docker-nodejs#219
Closed
@codebytere codebytere mentioned this pull request Sep 5, 2026
inspector: fix crash when the IsolateData has no platform #65818
Merged
codebytere added a commit to codebytere/node that referenced this pull request Sep 5, 2026
@codebytere
inspector: fix crash when the IsolateData has no platform
7656a6f
An embedder that creates its IsolateData without a MultiIsolatePlatform
(allowed; node.h says only Workers need one) and keeps the inspector
segfaulted on the first `console.log()`, `console.time()` or profiler
use after a `node:inspector` session was connected: V8 calls the
inspector client's `currentTimeMS()` there, and
`NodeInspectorClient::currentTimeMS()` dereferenced
`isolate_data()->platform()` unconditionally.

Fall back to the wall clock when there is no platform, which is what
`NodePlatform::CurrentClockTimeMillis()` returns anyway.

Refs: nodejs#21917
Signed-off-by: Shelley Vohr <[email protected]>
nodejs-github-bot pushed a commit that referenced this pull request Sep 7, 2026
@codebytere
inspector: fix crash when the IsolateData has no platform
8d1d7b6
An embedder that creates its IsolateData without a MultiIsolatePlatform
(allowed; node.h says only Workers need one) and keeps the inspector
segfaulted on the first `console.log()`, `console.time()` or profiler
use after a `node:inspector` session was connected: V8 calls the
inspector client's `currentTimeMS()` there, and
`NodeInspectorClient::currentTimeMS()` dereferenced
`isolate_data()->platform()` unconditionally.

Fall back to the wall clock when there is no platform, which is what
`NodePlatform::CurrentClockTimeMillis()` returns anyway.

Refs: #21917
Signed-off-by: Shelley Vohr <[email protected]>
PR-URL: #65818
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 16, 2026
@codebytere @aduh95
inspector: fix crash when the IsolateData has no platform
9fd3e6c
An embedder that creates its IsolateData without a MultiIsolatePlatform
(allowed; node.h says only Workers need one) and keeps the inspector
segfaulted on the first `console.log()`, `console.time()` or profiler
use after a `node:inspector` session was connected: V8 calls the
inspector client's `currentTimeMS()` there, and
`NodeInspectorClient::currentTimeMS()` dereferenced
`isolate_data()->platform()` unconditionally.

Fall back to the wall clock when there is no platform, which is what
`NodePlatform::CurrentClockTimeMillis()` returns anyway.

Refs: #21917
Signed-off-by: Shelley Vohr <[email protected]>
PR-URL: #65818
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 22, 2026
@codebytere @aduh95
inspector: fix crash when the IsolateData has no platform
843a277
An embedder that creates its IsolateData without a MultiIsolatePlatform
(allowed; node.h says only Workers need one) and keeps the inspector
segfaulted on the first `console.log()`, `console.time()` or profiler
use after a `node:inspector` session was connected: V8 calls the
inspector client's `currentTimeMS()` there, and
`NodeInspectorClient::currentTimeMS()` dereferenced
`isolate_data()->platform()` unconditionally.

Fall back to the wall clock when there is no platform, which is what
`NodePlatform::CurrentClockTimeMillis()` returns anyway.

Refs: #21917
Signed-off-by: Shelley Vohr <[email protected]>
PR-URL: #65818
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@addaleax addaleax addaleax approved these changes
@cjihrig cjihrig cjihrig approved these changes
@eugeneo eugeneo Awaiting requested review from eugeneo
+4 more reviewers
@TimothyGu TimothyGu TimothyGu approved these changes
@targos targos targos approved these changes
@maclover7 maclover7 maclover7 approved these changes
@devsnek devsnek devsnek approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. inspector Issues and PRs related to the V8 inspector protocol.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@alexkozy @nodejs-github-bot @maclover7 @addaleax @TimothyGu @targos @cjihrig @devsnek
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.