Skip to content
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: fix deferred events not working with -e #1793

Merged
merged 4 commits into from
May 26, 2015

Conversation

bnoordhuis
Copy link
Member

R=@trevnorris

CI: https://jenkins-iojs.nodesource.com/view/iojs/job/iojs+any-pr+multi/710/

Sorry, it turned out a bit bigger than expected. I had to do some cleanup work to get make test to pass.

var result = module._compile(script, name + '-wrapper');
if (process._print_eval) console.log(result);
// Defer evaluation for a tick. This is something of a workaround
// for deferrend events not firing when evaluating scripts from the
Copy link
Contributor

Choose a reason for hiding this comment

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

s/deferred/ ?

Also "something of" may be better understood as "somewhat of", at least to me.

@brendanashworth
Copy link
Contributor

The original / one of the original bug reporters already submitted a test case for this (#1581). Should we use theirs?

@bnoordhuis
Copy link
Member Author

Oh, I hadn't seen that. I don't think @rmg minds.

Defer evaluation of the script for a tick.  This is a workaround for
events not firing when evaluating scripts on the command line with -e.

Fixes: nodejs#1600
PR-URL: nodejs#1793
Reviewed-By: Trevor Norris <[email protected]>
The non-isolate version of node::FatalException() is deprecated, switch
to the version that takes an isolate as its first argument.

PR-URL: nodejs#1793
Reviewed-By: Trevor Norris <[email protected]>
Commit 3e1b1dd ("Remove excessive copyright/license boilerplate") left
in a few lines of boilerplate here and there.  This commit removes them.

PR-URL: nodejs#1793
Reviewed-By: Trevor Norris <[email protected]>
The JS source files in test/addons/doc-*/ are scraped from the reference
documentation in doc/api and need not conform to the style guide.

PR-URL: nodejs#1793
Reviewed-By: Trevor Norris <[email protected]>
@trevnorris
Copy link
Contributor

@bnoordhuis LGTM

@bnoordhuis bnoordhuis closed this May 26, 2015
@bnoordhuis bnoordhuis deleted the issue1600 branch May 26, 2015 19:31
@bnoordhuis bnoordhuis merged commit 6dfca71 into nodejs:master May 26, 2015
This was referenced May 27, 2015
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
Defer evaluation of the script for a tick.  This is a workaround for
events not firing when evaluating scripts on the command line with -e.

Fixes: nodejs/node#1600
PR-URL: nodejs/node#1793
Reviewed-By: Trevor Norris <[email protected]>
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
The non-isolate version of node::FatalException() is deprecated, switch
to the version that takes an isolate as its first argument.

PR-URL: nodejs/node#1793
Reviewed-By: Trevor Norris <[email protected]>
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
Commit 3e1b1dd ("Remove excessive copyright/license boilerplate") left
in a few lines of boilerplate here and there.  This commit removes them.

PR-URL: nodejs/node#1793
Reviewed-By: Trevor Norris <[email protected]>
andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
The JS source files in test/addons/doc-*/ are scraped from the reference
documentation in doc/api and need not conform to the style guide.

PR-URL: nodejs/node#1793
Reviewed-By: Trevor Norris <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants