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

process.nextTick and io.js versions up to 1.7.1 #7

Closed
quentin-ol opened this issue Nov 10, 2015 · 1 comment
Closed

process.nextTick and io.js versions up to 1.7.1 #7

quentin-ol opened this issue Nov 10, 2015 · 1 comment

Comments

@quentin-ol
Copy link

Hello everyone,

in https://github.com/mqttjs/mqtt-packet/blob/master/writeToStream.js#L10, there is a test based on the string process.version. To my understanding, this heuristic guesses if one can pass arguments to process.nextTick or if wrapping is necessary, in which case tickShim is used: https://github.com/mqttjs/mqtt-packet/blob/master/writeToStream.js#L12 .

The shim is necessary for versions of io.js up to 1.7.1 (nodejs/node#1077), versions that the heuristic do not match.

I don't know if you have any plan on supporting older versions of io.js, I'm myself stuck with this version until nwjs (https://github.com/nwjs/nw.js) releases 0.13 in the stable branch but hot-fixing this shouldn't take too much effort, though (I can initiate a PR if this helps).

Regards,

Quentin

@mcollina
Copy link
Member

If you can send a PR, that would be awesome :). You can always use v3 in
the meantime, it does not use nextTick (but it is way slower!)
Il giorno mar 10 nov 2015 alle 16:36 Quentin Lampin <
notifications@github.com> ha scritto:

Hello everyone,

in https://github.com/mqttjs/mqtt-packet/blob/master/writeToStream.js#L10,
there is a test based on the string process.version. To my understanding,
this heuristic guesses if one can pass arguments to process.nextTick or
if wrapping is necessary, in which case tickShim is used:
https://github.com/mqttjs/mqtt-packet/blob/master/writeToStream.js#L12 .

The shim is necessary for versions of io.js up to 1.7.1 (nodejs/node#1077
nodejs/node#1077), versions that the heuristic
do not match.

I don't know if you have any plan on supporting older versions of io.js,
I'm myself stuck with this version until nwjs (
https://github.com/nwjs/nw.js) releases 0.13 in the stable branch but
hot-fixing this shouldn't take too much effort, though (I can initiate a PR
if this helps).

Regards,

Quentin


Reply to this email directly or view it on GitHub
#7.

@mcollina mcollina closed this as completed May 3, 2016
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

No branches or pull requests

2 participants