util core module

71 views
Skip to first unread message

Ep Ga

unread,
Sep 13, 2014, 5:06:31 PM9/13/14
to nod...@googlegroups.com
https://github.com/joyent/node/blob/master/lib/assert.js

http://nodejs.org/api/util.html

Why did you take out methods? like isBuffer, and isObject? that make no sense if the core module rely on them, then others would too.

I request that you reinsert it in to the util module.

mscdex

unread,
Sep 14, 2014, 9:00:14 AM9/14/14
to nod...@googlegroups.com
On Saturday, September 13, 2014 5:06:31 PM UTC-4, Ep Ga wrote:

Why did you take out methods? like isBuffer, and isObject? that make no sense if the core module rely on them, then others would too.


They didn't take them out. They only exist in node v0.11+. Those API docs are for the latest stable version (currently v0.10.31).

Matt

unread,
Sep 14, 2014, 8:51:32 PM9/14/14
to nod...@googlegroups.com
isBuffer is now Buffer.isBuffer().


--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/3f79380b-2c0a-4bc5-af27-52d2bfb30f0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ep Ga

unread,
Sep 15, 2014, 1:01:06 AM9/15/14
to nod...@googlegroups.com
Where can I find the current version node source code? Version 0.10.31.

mscdex

unread,
Sep 15, 2014, 1:59:21 PM9/15/14
to nod...@googlegroups.com
On Sunday, September 14, 2014 8:51:32 PM UTC-4, Matt Sergeant wrote:
isBuffer is now Buffer.isBuffer().


node v0.11+ aliases[1] `Buffer.isBuffer()` to `util.isBuffer()`.


[1] https://github.com/joyent/node/blob/f310c0f16b7d30c1f60eb4ae794748ef5d2ba77c/lib/buffer.js#L131-L133



On Monday, September 15, 2014 1:01:06 AM UTC-4, Ep Ga wrote:
Where can I find the current version node source code? Version 0.10.31.

Reply all
Reply to author
Forward
0 new messages