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

timers: make Timer.close idempotent #1288

Closed

Conversation

petkaantonov
Copy link
Contributor

fixes #1287

R=@bnoordhuis ?


process.on("exit", function() {
assert.equal(1, called);
});
Copy link
Member

Choose a reason for hiding this comment

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

Can you do s/"/'/g on this file?

@bnoordhuis
Copy link
Member

LGTM with style nit.

@petkaantonov
Copy link
Contributor Author

done

petkaantonov added a commit that referenced this pull request Mar 27, 2015
fixes #1287

PR-URL: #1288
Reviewed-By: Ben Noordhuis <[email protected]>
@petkaantonov
Copy link
Contributor Author

landed in 77c2da1

@petkaantonov petkaantonov deleted the make-timer-close-idempotent branch March 27, 2015 18:52
@rvagg rvagg mentioned this pull request Mar 28, 2015
rvagg added a commit that referenced this pull request Mar 31, 2015
Notable changes:

 * fs: corruption can be caused by fs.writeFileSync() and append-mode
   fs.writeFile() and fs.writeFileSync() under certain circumstances,
   reported in #1058, fixed in #1063 (Olov Lassus).
 * iojs: an "internal modules" API has been introduced to allow core
   code to share JavaScript modules internally only without having to
   expose them as a public API, this feature is for core-only #848
   (Vladimir Kurchatkin).
 * timers: two minor problems with timers have been fixed:
   - Timer#close() is now properly idempotent #1288 (Petka Antonov).
   - setTimeout() will only run the callback once now after an
     unref() during the callback #1231 (Roman Reiss).
 * Windows: a "delay-load hook" has been added for compiled add-ons
   on Windows that should alleviate some of the problems that Windows
   users may be experiencing with add-ons in io.js #1251
   (Bert Belder).
 * V8: minor bug-fix upgrade for V8 to 4.1.0.27.
 * npm: upgrade npm to 2.7.4. See npm CHANGELOG.md for details.
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.

2 participants