Ben Noordhuis
82227f3511
deps: make node-gyp fetch tarballs from iojs.org
...
Apply a small patch that makes node-gyp fetch the tarballs from
https://iojs.org/ instead of http://nodejs.org/
A patch better suited for inclusion upstream will be put together
shortly.
PR-URL: https://github.com/iojs/io.js/pull/343
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-23 23:23:06 +01:00
Forrest L Norvell
f5b35dbda4
deps: upgrade npm to 2.3.0
...
* Windows improvements: no more uid is undefined errors, use `%COMSPEC%`
when set in preference to hardcoded `cmd`, improved handling of Git
remotes.
* Add caching based on Last-Modified / If-Modified-Since headers in
addition to Etag-based cache validation.
PR-URL: https://github.com/iojs/io.js/pull/573
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-23 23:19:27 +01:00
Thorsten Lorenz
f3fed5193c
doc: adding thlorenz to list of collaborators
...
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com >, Jeremiah Senkpiel <fishrock123@rocketmail.com >, Bert Belder <bertbelder@gmail.com >
PR-URL: https://github.com/iojs/io.js/pull/577
2015-01-23 17:03:05 -05:00
Vladimir Kurchatkin
8de89ec465
lib: move default address logic to net._listen2
...
When address is not provided to `server.listen()`, `_connectionKey` and
error messages should include actual address and correct family.
PR-URL: https://github.com/iojs/io.js/pull/539
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-23 18:09:39 +01:00
Ben Noordhuis
3143d732f6
test: delete parallel/test-process-active-wraps
...
It is supposed to test an internal debug feature but what it effectively
ends up testing, is the exact lifecyle of different kinds of internal
handles.
Lifecycles are different across releases and platforms, making the test
fail intermittently or, in some environments, consistently. It's not a
good test, delete it.
PR-URL: https://github.com/iojs/io.js/pull/575
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-23 17:59:12 +01:00
Ben Noordhuis
4f95b5d825
test: fix parallel/test-http-destroyed-socket-write2
...
Ameliorate a timing sensitivity issue by switching from setImmediate()
to setTimeout() with a 50 ms timeout.
This commit also adds EPIPE as an accepted error (besides ECONNABORT
and ECONNRESET) because that's a plausible outcome given the timing
sensitive nature of test.
PR-URL: https://github.com/iojs/io.js/pull/575
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-23 17:59:10 +01:00
Ben Noordhuis
5ba307a978
test: fix parallel/test-dgram-error-message-address
...
The test expects EADDRNOTAVAIL when trying to bind to address 111::1.
Systems that have IPv6 disabled throw EAFNOSUPPORT instead, however.
Update the test accordingly.
PR-URL: https://github.com/iojs/io.js/pull/575
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-23 17:58:27 +01:00
Vladimir Kurchatkin
f4c536b749
debugger: don't override module binding
...
Overriding module argument with const causes a SyntaxError. This
commit changes the variable name to remove the error.
PR-URL: https://github.com/iojs/io.js/pull/572
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-23 09:54:27 -05:00
cjihrig
40ffed8f3f
stream: use nop as write() callback if omitted
...
This commit introduces a nop function that is used as the
Writable.prototype.write() callback when one is not provided.
This saves on function object creation.
PR-URL: https://github.com/iojs/io.js/pull/564
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-01-23 09:43:31 -05:00
Icer Liang
df0d790107
doc: dns.lookupService has wrong header level
...
PR-URL: https://github.com/iojs/io.js/pull/552
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-23 13:28:45 +01:00
Todd Kennedy
8b1db9c0a7
doc: note in docs about missing interfaces
...
Update the documentation for `os.networkInterfaces` to note that any
interface that has not been assigned an address will not be displayed in
the results
Fixes: https://github.com/iojs/io.js/issues/498
PR-URL: https://github.com/iojs/io.js/pull/543
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-23 13:26:12 +01:00
Ben Noordhuis
2928ac68e5
doc: bump punycode api stability to 'stable'
...
The punycode library has been in the tree for over three years now and
has been de facto stable for all that time, if not perhaps de jure.
Let's make it official.
PR-URL: https://github.com/iojs/io.js/pull/470
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-01-23 13:08:40 +01:00
Rod Vagg
328e67b58b
doc: add TC meeting 2015-01-21 minutes
...
PR-URL: https://github.com/iojs/io.js/pull/549
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
2015-01-23 12:08:16 +11:00
Calvin Metcalf
e5e598060e
lib,src: make pseudoRandomBytes alias randomBytes
...
Previously pseudoRandomBytes worked similarly to randomBytes but in the
event of insufficient entropy would silently return non-secure values.
As of f68a116 , the entropy pool blocks if there is insufficient entropy
instead of giving an error so there is now no longer a case where
pseudoRandomBytes would act differently than randomBytes.
Docs are updated to remove pseudoRandomBytes and to clarify that
randomBytes now does block instead of erring when entropy is low.
PR-URL: https://github.com/iojs/io.js/pull/557
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-22 23:08:36 +01:00
Ben Noordhuis
c6cd46041c
configure: remove unused arm_neon variable
...
Remove the configure check, the flag was dropped in V8 3.28.
PR-URL: https://github.com/iojs/io.js/pull/559
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-22 23:08:33 +01:00
Ben Noordhuis
7d9d7560cf
configure: disable vfpv3 on armv6
...
VFPv3 is ARMv7-only, enabling it for ARMv6 is therefore always wrong.
Mea culpa, I do believe I'm the original author of that change.
Fixes: https://github.com/iojs/io.js/issues/283
PR-URL: https://github.com/iojs/io.js/pull/559
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-22 23:08:28 +01:00
Ben Noordhuis
297cadbab6
deps: fix v8 armv6 run-time detection
...
The elf_platform suffix in /proc/cpuinfo moved to the model name field
in Linux 3.8.
Out-of-tree patch pending https://codereview.chromium.org/867713003/
Fixes: https://github.com/iojs/io.js/issues/283
PR-URL: https://github.com/iojs/io.js/pull/559
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-22 23:07:53 +01:00
Calvin Metcalf
d481bb68c4
doc: more explicit crypto.pseudoRandomBytes docs
...
Updates the docs for the crypto.pseudoRandomBytes function
to more explicitly detail how it's the same as crypto.randomBytes
just without a safety net (e.g. it doesn't throw an error when
there is low entropy).
PR-URL: https://github.com/iojs/io.js/pull/545
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-22 15:47:41 +01:00
Ben Noordhuis
7d462479f6
src: s/node/io.js/ in iojs --help message
...
Fix up a node reference that was missed in commit daf9562d .
PR-URL: https://github.com/iojs/io.js/pull/538
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-22 15:40:25 +01:00
Ben Noordhuis
069c0dfb1c
deps: upgrade v8 to 4.1.0.12
...
No out-of-tree patches, yay!
PR-URL: https://github.com/iojs/io.js/pull/555
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-22 13:21:34 +01:00
Rod Vagg
ada2a4308c
doc: add TC meeting 2015-01-13 minutes
...
PR-URL: https://github.com/iojs/io.js/pull/508
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-22 21:57:42 +11:00
Bert Belder
60402b924b
docs: remove incorrect entry from changelog
...
`url.format()` doesn't take a `path` option; the change that
introduced it was reverted in 913addbff5 .
PR: https://github.com/iojs/io.js/pull/546
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-22 02:19:34 +01:00
Jackson Tian
8b98096c92
fs: make fs.access() flags read only
...
These flags were defined as constants, but could be
overwritten when exported from fs. This commit exports
the flags as read only properties of fs.
PR-URL: https://github.com/iojs/io.js/pull/507
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-21 16:29:58 -05:00
cjihrig
804e7aa9ab
lib: use const to define constants
...
This commit replaces a number of var statements throughout
the lib code with const statements.
PR-URL: https://github.com/iojs/io.js/pull/541
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-21 16:21:31 -05:00
Ben Noordhuis
803883bb1a
v8: fix template literal NULL pointer deref
...
Fixes a NULL pointer dereference with unterminated template literals.
This is a back-port of commit v8/v8-git-mirror@02218ad from the V8
master branch, see https://code.google.com/p/v8/issues/detail?id=3820 .
PR-URL: https://github.com/iojs/io.js/pull/534
Reviewed-By: Caitlin Potter <caitpotter88@gmail.com >
Reviewed-By: Fedor Indutny <fedor@indutny.com >
2015-01-21 13:35:01 +01:00
Vladimir Kurchatkin
5435cf2f16
v8: optimize getHeapStatistics
...
Since setting object properties in C++ can be slow, pass
data to JS using preallocated smalloc buffer and create
object in JS instead.
PR-URL: https://github.com/iojs/io.js/pull/469
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-01-21 01:25:54 +01:00
Yosuke Furukawa
5d014637b6
benchmark: print score to five decimal places
...
PR-URL: https://github.com/iojs/io.js/pull/516
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-21 01:21:44 +01:00
Trevor Norris
752585db63
src: silence clang warnings
...
Mark several methods "override" in order to remove build warnings.
PR-URL: https://github.com/iojs/io.js/pull/531
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-20 15:28:05 -08:00
Cheng Zhao
22e1aea8a0
src: set node_is_initialized in node::Init
...
This can make node_is_initialized correctly set to true for applications
that use node::Init to embed iojs.
PR-URL: https://github.com/iojs/io.js/pull/225/
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-21 00:13:36 +01:00
Ben Noordhuis
668420d1f7
src: clean up unused macros in node_file.cc
...
Remove a few unused or barely used macros from src/node_file.cc.
PR-URL: https://github.com/iojs/io.js/pull/529
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-01-21 00:11:59 +01:00
Ben Noordhuis
52f624e72a
src: rename ASSERT macros in node_crypto.cc
...
Rename the misnomers ASSERT_IS_STRING_OR_BUFFER and ASSERT_IS_BUFFER.
Said macros don't assert, they throw a TypeError and return.
PR-URL: https://github.com/iojs/io.js/pull/529
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-01-21 00:11:57 +01:00
Ben Noordhuis
e95cfe14e3
src: add ASSERT_EQ style macros
...
Add ASSERT counterparts to the CHECK_EQ/CHECK_NE/etc. family of macros.
PR-URL: https://github.com/iojs/io.js/pull/529
Reviewed-By: Trevor Norris <trev.norris@gmail.com >
2015-01-21 00:11:36 +01:00
Ben Noordhuis
ee9cd004d8
lib: fix TypeError with EventEmitter#on() abuse
...
Commit 2931348 added EventEmitter#getMaxListeners() but introduced a
regression when people abuse EventEmitter.prototype.on.call() to call
EventEmitter#on() on a non-EE object. Add a workaround for that.
Fixes: https://github.com/iojs/io.js/issues/523
PR-URL: https://github.com/iojs/io.js/pull/527
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-20 23:25:57 +01:00
Ben Noordhuis
77d68070da
test: fix event-emitter-get-max-listeners style
...
Add missing commas in parallel/test-event-emitter-get-max-listeners.
Comma-less style is fine and dandy but it throws off vim's autoindent.
PR-URL: https://github.com/iojs/io.js/pull/527
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-20 23:25:45 +01:00
Ben Noordhuis
767ee73486
test: strip copyright boilerplate
...
Commit 3e1b1dd missed a few files in test/parallel, this commit
rectifies that.
Only test/parallel/test-url.js still has a copyright header. I left
it in because the original author is neither an io.js contributor nor
a StrongLoop employee.
PR-URL: https://github.com/iojs/io.js/pull/527
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2015-01-20 23:25:19 +01:00
cjihrig
86eda173b1
fs: define constants with const
...
Define fs constants using const, as the newer version of
v8 supports it, and appears to be capable of optimizing.
PR-URL: https://github.com/iojs/io.js/pull/522
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-20 12:17:37 -05:00
Rod Vagg
b33cd4f1df
Working on 1.0.4
2015-01-20 12:36:53 +11:00
Rod Vagg
b5c69d1d1b
2015-01-20 io.js v1.0.3 Release
...
Notable changes
* V8 upgrade from 3.31 to 4.1, this is not a major upgrade, the version number "4.1" signifies tracking towards Chrome 41. The 3.31 branch is now not tracking towards a stable release.
* Re-enable Windows XP / 2003 support
* npm upgrade to 2.2.0
* Improved FreeBSD support
v1.0.3
2015-01-20 12:35:53 +11:00
toastynerd
9419e1fb69
src: fix inconsistency between a check and error
...
dlopen takes exactly 2 arguments, check for exactly 2
PR-URL: https://github.com/iojs/io.js/pull/515
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-20 11:17:11 +11:00
cjihrig
03ee4d8547
fs: add error code on null byte paths
...
This commit adds a code field to the error returned by
nullCheck().
Fixes: https://github.com/iojs/io.js/issues/517
PR-URL: https://github.com/iojs/io.js/pull/519
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-19 18:07:46 -05:00
cjihrig
e2558f02df
net: fix error details in connect()
...
3ac4941953 introduced a
bug as it attempted to access properties of an
undefined variable. This commit cleans up the offending
code.
Fixes: https://github.com/iojs/io.js/issues/510
PR-URL: https://github.com/iojs/io.js/pull/514
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-19 15:25:52 -05:00
Bert Belder
4af5746993
win,build: remove duplicate definition
...
The duplicate warning was fixed by e1fe270 , but returned as of 9f45799 .
Hopefully this will fix the issue for good.
PR: https://github.com/iojs/io.js/pull/512
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-19 20:12:12 +01:00
Bert Belder
e8d08503c7
win: bring back xp/2k3 support
...
Chrome still runs on Windows XP, so there is no reason that iojs
couldn't.
PR: https://github.com/iojs/io.js/pull/512
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-19 20:12:11 +01:00
Timothy J Fontaine
4dd22b946e
cluster: avoid race enabling debugger in worker
...
Previously if a worker's state machine had already transitioned into the
'listening' state when it received the message enabling the debugger,
the worker would never enable its debugger.
Change the logic to allow the 'listening' as a valid state for enabling
the debugger.
Fixes: https://github.com/joyent/node/issues/6440
Original-PR-URL: https://github.com/joyent/node/pull/9037
Signed-off-by: Julien Gilli <julien.gilli@joyent.com >
Fixes: https://github.com/iojs/io.js/issues/340
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Bert Belder <bertbelder@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-19 19:31:01 +01:00
Ben Noordhuis
6b91c78e20
test: reland changes from 11c1bae
...
Reland the changes from commit 11c1bae ("lib: make --debug-port work
with cluster") that were temporarily backed out to cherry-pick commits
from joyent/node.
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Bert Belder <bertbelder@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-19 19:30:31 +01:00
Timothy J Fontaine
992a1e7f5f
test: debug-signal-cluster should not be racey
...
unref one superfluous timer (as the test suite already has a global
timeout), and improve the state machine to iterate the messages more
reliably.
Ultimately make the test complete more quickly.
Original-PR-URL: [unknown]
Signed-off-by: Julien Gilli <julien.gilli@joyent.com >
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Bert Belder <bertbelder@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-19 19:30:17 +01:00
Ben Noordhuis
cdf0df13d8
test: temporarily back out changes from 11c1bae
...
Temporarily revert the changes to test/ from commit 11c1bae ("lib: make
--debug-port work with cluster") to ease cherry-picks from joyent/node.
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Bert Belder <bertbelder@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-19 19:30:11 +01:00
Ben Noordhuis
1ea607cb29
test: move sequential/test-debug-port-from-cmdline
...
Move sequential/test-debug-port-from-cmdline to test/parallel. Per the
previous commit, it should now be possible to run the test in parallel
with other debugger tests.
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Bert Belder <bertbelder@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-19 19:30:04 +01:00
Julien Gilli
2f33e00d71
test: fix test-debug-port-from-cmdline.js
...
Make this test less prone to race conditions by using synchronous
interprocess communication instead of a timer to determine when the
child process is ready to receive messages from its parent.
Also, remove a superfluous timer since the tests suite already makes
tests time out after a while.
Original-PR-URL: https://github.com/joyent/node/pull/9049
Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com >
PR-URL: https://github.com/iojs/io.js/pull/501
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Bert Belder <bertbelder@gmail.com >
Reviewed-By: Rod Vagg <rod@vagg.org >
2015-01-19 19:29:18 +01:00
Xiaowei Li
b7365c1559
repl: make REPL support multiline template literals
...
Let REPL enter multiline mode if user's input contains unterminated
template literals.
PR-URL: https://github.com/iojs/io.js/pull/333
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2015-01-19 13:06:37 +01:00