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 — repl: event ordering: delay 'close' until 'flushHistory' by Fishrock123 · Pull Request #3435 · nodejs/node

Conversation

@Fishrock123

@Fishrock123 Fishrock123 commented Oct 19, 2015

Copy link
Copy Markdown
Contributor

Emitting close before the history has flushed is somewhat incorrect and
rather confusing.

Fixes an issue related to #2356

Separate PR since I'm going to try to make #2356 work without it, but would already like review here.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Fishrock123 Fishrock123 added repl Issues and PRs related to the REPL subsystem. semver-major PRs that contain breaking changes and should be released in the next major version. labels Oct 19, 2015
@Fishrock123 Fishrock123 added this to the 5.0.0 milestone Oct 19, 2015
Fishrock123
Fishrock123 reviewed Oct 19, 2015
View reviewed changes
Comment thread lib/repl.js Outdated

@Fishrock123 Fishrock123 Oct 19, 2015

Copy link
Copy Markdown
Contributor Author

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.

maybe this should be called in nextTick?

Sorry, something went wrong.

Uh oh!

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

All reactions

@evanlucas evanlucas Oct 19, 2015

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.

I would think so

Sorry, something went wrong.

Uh oh!

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

All reactions
@Fishrock123

Fishrock123 commented Oct 19, 2015

Copy link
Copy Markdown
Contributor Author

CI https://ci.nodejs.org/job/node-test-commit/878/

All reactions

Sorry, something went wrong.

Uh oh!

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

@evanlucas

evanlucas commented Oct 19, 2015

Copy link
Copy Markdown
Contributor

LGTM if CI is happy

All reactions

Sorry, something went wrong.

Uh oh!

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

@rvagg rvagg mentioned this pull request Oct 21, 2015
v5.0.0 Planning & Checklist #3397
Closed
13 tasks done
@evanlucas

evanlucas commented Oct 21, 2015

Copy link
Copy Markdown
Contributor

so for failures we have:

  • test-child-process-fork-net2.js (known to be flaky I believe)
  • both plinux machines have failures (which I believe have been happening already)
  • a couple windows failures (which don't seem related)

I don't think any of these are related to the proposed changes. Still LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

@Fishrock123

Fishrock123 commented Oct 21, 2015

Copy link
Copy Markdown
Contributor Author

cc @nodejs/tsc

All reactions

Sorry, something went wrong.

Uh oh!

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

@trevnorris

trevnorris commented Oct 21, 2015

Copy link
Copy Markdown
Contributor

Code change LGTM. Just squash the commits.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Fishrock123
Fishrock123 force-pushed the repl-close-after-flush branch from 1f69c51 to 5539b5e Compare October 22, 2015 17:37
@Fishrock123
repl: event ordering: delay 'close' until 'flushHistory'
ecab7a6
Emitting 'close' before the history has flushed is somewhat incorrect
and rather confusing.

This also makes the 'close' event always asynchronous for consistency.

Refs: nodejs#2356
PR-URL: nodejs#3435
Reviewed By: Evan Lucas <[email protected]>
Reviewed-By: Trevor Norris <[email protected]>
@Fishrock123
Fishrock123 force-pushed the repl-close-after-flush branch from 5539b5e to ecab7a6 Compare October 22, 2015 17:39
@Fishrock123
Fishrock123 merged commit ecab7a6 into nodejs:master Oct 22, 2015
Fishrock123 added a commit that referenced this pull request Oct 22, 2015
@Fishrock123 @rvagg
repl: event ordering: delay 'close' until 'flushHistory'
ce391ed
Emitting 'close' before the history has flushed is somewhat incorrect
and rather confusing.

This also makes the 'close' event always asynchronous for consistency.

Refs: #2356
PR-URL: #3435
Reviewed By: Evan Lucas <[email protected]>
Reviewed-By: Trevor Norris <[email protected]>
@rvagg rvagg mentioned this pull request Oct 27, 2015
Release proposal: v5.0.0 #3466
Merged
@leonardoadame leonardoadame mentioned this pull request Nov 28, 2023
[Snyk] Fix for 6 vulnerabilities leonardoadame/node#185
Open
@aliscco aliscco mentioned this pull request Nov 28, 2023
[Snyk] Fix for 5 vulnerabilities aliscco/alisco-node#694
Open
@leonardoadame leonardoadame mentioned this pull request Nov 29, 2023
[Snyk] Fix for 6 vulnerabilities leonardoadame/node#210
Open
This was referenced Nov 29, 2023
[Snyk] Fix for 4 vulnerabilities aliscco/alisco-node#714
Open
[Snyk] Fix for 5 vulnerabilities aliscco/alisco-node#732
Open
@leonardoadame leonardoadame mentioned this pull request Nov 29, 2023
[Snyk] Fix for 5 vulnerabilities leonardoadame/node#263
Open
This was referenced Nov 29, 2023
[Snyk] Fix for 14 vulnerabilities aliscco/alisco-node#776
Open
[Snyk] Fix for 6 vulnerabilities aliscco/alisco-node#1023
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

repl Issues and PRs related to the REPL subsystem. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Milestone

5.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@Fishrock123 @evanlucas @trevnorris
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.