Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
LazerBear
on Sept 21, 2014
|
parent
|
context
|
favorite
| on:
Node.js Best Practices
If you accidentally forget to use 'new' when you're supposed to, the "constructor" method will change the global object instead of a new object, it can cause strange behavior that is very hard to trace.
hderms
on Oct 3, 2014
[–]
Ah, I see. I guess I've never forgotten to use new. That does sound incredibly annoying to debug.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: