Uh oh!
There was an error while loading. Please reload this page.
doc: note about custom inspect functions - #2142
Conversation
There was a problem hiding this comment.
Changed it now, thanks :-)
See: nodejs#1798 When an Object is printed in REPL, the actual representation can be overriden by defining `inspect` method on the objects. This patch includes a note about the same in the REPL documentation
eec353d to
b08202aComparethefourtheye
commented
Jul 15, 2015
bump |
There was a problem hiding this comment.
Ah, copy/paste mistake. Thanks :-)
Fishrock123
commented
Jul 16, 2015
LGTM Otherwise. |
thefourtheye
commented
Jul 17, 2015
@Fishrock123 Addressed the comments. PTAL :-) |
thefourtheye
commented
Jul 22, 2015
Bump! |
There was a problem hiding this comment.
Maybe call this Customizing Object displays in the REPL
thefourtheye
commented
Jul 22, 2015
@cjihrig Thanks for the review. I changed the text now. PTAL. |
There was a problem hiding this comment.
I just used :. Should this be a .?
cjihrig
commented
Jul 22, 2015
LGTM minus a few comments. |
There was a problem hiding this comment.
I think either a period or colon should be fine here. I originally said period because your sentence was coming to a finish, but you also have a following code block, so either should be fine.
thefourtheye
commented
Jul 22, 2015
@Fishrock123 Can you PTAL and give LGTM, so that I can land this? EDIT: CC @targos |
There was a problem hiding this comment.
The link should be relative. You can see how it's done in https://raw.githubusercontent.com/nodejs/io.js/master/doc/api/console.markdown
thefourtheye
commented
Jul 22, 2015
Thanks for pointing it out @targos :-) PTAL now. |
targos
commented
Jul 22, 2015
LGTM |
There was a problem hiding this comment.
Should this be referred to as inspect()? I wish we had guidelines for that kind of thing... cc @nodejs/documentation
See: #1798
When an Object is printed in REPL, the actual representation can be
overriden by defining
inspectmethod on the objects. This patchincludes a note about the same in the REPL documentation