Ben Noordhuis
aa3441ae45
js2c: raise proper Exception, not a string
Fixes the following error message:
TypeError: exceptions must be old-style classes or derived
from BaseException, not str
Fixes #4303 .
12 years ago
Ben Noordhuis
335f20896a
crypto: allow negative numbers in setOptions()
OR'ing together two large values, like `SSL_OP_ALL | SSL_OP_NO_TICKET`,
produces a negative number. To wit:
assert((0x80000000 | 0x4000) === -0x7fffc000); // true
assert((0x80000000 | 0x4000) === 0x80004000); // false!
It's easy to work around by doing a logical shift, like this:
assert((0x80000000 | 0x4000) >>> 0 === 0x80004000); // true
But that's not very intuitive. Let's be more lenient in what we accept.
12 years ago
isaacs
fb5c7f03a0
blog: Don't filter out non-latest release notes
This causes too many people to ask me why it's broken.
12 years ago
isaacs
db008f7cce
npm: Upgrade to 1.1.66
12 years ago
Trevor Norris
bb867c0fa6
doc: Add lines about additonal uses of Buffer
That Buffers can be used with Typed Array Views and DataViews. Included
are a couple simple examples.
Closes #4257 .
12 years ago
Ben Noordhuis
8d2753c141
constants: fix wrapping of large constants
Use Number::New() instead of Integer::New(). The latter wraps large values,
e.g. 0x80000000 becomes -2147483648 instead of 2147483648.
12 years ago
Shigeki Ohtsu
11a5119e72
build: disable use of thin archive
Thin archive needs binutils >= 2.19, disable it for supporting old ar
even if static libraries are linked within a local build.
12 years ago
Scott Blomquist
f657ce685d
windows: add tracing with performance counters
Patch by Henry Rawas and Scott Blomquist.
12 years ago
Bert Belder
bc9388342f
windows: fix normalization of UNC paths
12 years ago
Ben Noordhuis
a25ebb1997
v8: fix dragonflybsd build
* fix gyp build
* don't require libexecinfo, it's not there
* libpthread doesn't implement sem_timedwait(), fall back to sem_wait()
Upstreamed in https://codereview.chromium.org/11421013/
12 years ago
Ben Noordhuis
1e738c5ef2
build: make python executable configurable
Upstreamed in https://codereview.chromium.org/11418101/
Fixes #4287 .
12 years ago
Ben Noordhuis
815a181d03
deps: upgrade cares to 213f2b7
12 years ago
Ben Noordhuis
8ba1bec47d
deps: upgrade libuv to fc5984f
12 years ago
Ben Noordhuis
7716828166
deps: upgrade libuv to 5639b2f
12 years ago
Tim Kuijsten
6f9ed28fac
doc: fix typo in setPrivateKey function signature
12 years ago
Ben Noordhuis
38c52a0575
tools: update gyp to r1535
This commit contains one additional patch that makes gyp work on DragonFlyBSD,
see https://codereview.chromium.org/11348152/ for details.
12 years ago
Sergey Kholodilov
019ad346e0
crypto: fix ssl error handling
Make HandleSSLError() correctly process a zero status code: sometimes it
indicates an error and sometimes it doesn't.
12 years ago
Ben Noordhuis
71ba7bc2a0
node: remove eio-emul.h
The purpose of this file was to remap the old libeio API to the new one.
We dropped libeio in ee77a6a
and this file has been broken ever since.
Ergo, remove it.
12 years ago
Stephen Gallagher
38809e3985
build: allow linking against system libuv
12 years ago
Ben Noordhuis
b6a3b0a629
deps: upgrade libuv to 665a316
12 years ago
isaacs
e2bcff9aa7
bench: Use hrtime in throughput benchmark
12 years ago
Ben Noordhuis
b6e989759b
repl: don't interpret floating point numbers
Don't interpret floating point numbers, e.g. ".1234", as REPL commands.
Fixes #4268 .
12 years ago
Trevor Norris
13c5db9771
buffer: remove duplicate assertion tests
Many assertion tests are duplicated in buffer.js. These few could be easily
removed and still have all tests pass.
12 years ago
Bert Belder
b3bfb6fbb6
domains: don't crash if domain is set to null
Closes #4256
12 years ago
Bert Belder
9b22944b68
windows: fix the x64 debug build
12 years ago
Nathan Rajlich
5e4e87ade5
os: add os.endianness() function
12 years ago
Nathan Rajlich
3c91a7ae10
readline: use a "string_decoder" to parse "keypress" events
While updating the readline test cases to test both "terimal: false" and
"terminal: true" mode, it turned out that the test case testing utf8 chars
being sent over multiple write() calls was failing. The solution is to use
a string_decoder instance when parsing the "keypress" events.
12 years ago
Nathan Rajlich
e95e095289
readline: don't emit "line" events with a trailing '\n' char
Before this commit, readline was inconsistent in whether or not it would emit
"line" events with or without the trailing "\n" included. When "terminal"
mode was true, then there would be no "\n", when it was false, then the "\n"
would be present. However, the trailing "\n" doesn't add much, and most of the
time people just end up stripping it manually.
Part of #4243 .
12 years ago
Joshua Erickson
fb6377ebd0
net: More accurate IP address validation and IPv6 dotted notation.
* Added isIP method to make use of inet_pton to cares_wrap.cc
* Modified net.isIP() to make use of new C++ isIP method.
* Added new tests to test-net-isip.js.
12 years ago
Shigeki Ohtsu
f36bfd1590
build: remove jslint test/ on Windows
See 605927fbd9
12 years ago
Timothy J Fontaine
02dffb063e
build: enable DEAD_CODE_STRIPPING on OS X
12 years ago
Timothy J Fontaine
0f3ddad0fc
build: let xcode pick proper compiler
12 years ago
Timothy J Fontaine
ac047166f6
build: add configure option to generate xcode build files
12 years ago
Timothy J Fontaine
d264b23077
build: add postmortem as a dependency if enabled
12 years ago
Stephen Gallagher
73ff653a8d
build: allow linking against system c-ares
12 years ago
Stephen Gallagher
bfd78b69fc
build: allow linking against system http_parser
12 years ago
Anthony Pesch
fddb5dc2d3
typed arrays: add slice() support to ArrayBuffer
12 years ago
Fedor Indutny
05882668f9
debugger: exit and kill child on SIGTERM or SIGHUP
12 years ago
Ben Noordhuis
83e5e20c2c
build: remove _LARGEFILE_SOURCE, _FILE_OFFSET_BITS
Don't define the _LARGEFILE_SOURCE and _FILE_OFFSET_BITS flags, they're
inherited from libuv now.
12 years ago
Ben Noordhuis
a7ac1a1d88
deps: upgrade libuv to 0ddf9d6
12 years ago
Ben Noordhuis
a6fef475ce
build: make debug build on os x compile at -O0
Set GCC_OPTIMIZATION_LEVEL explicitly, otherwise GYP defaults to -Os.
12 years ago
Shigeki Ohtsu
148f5e6512
build: fix default dtrace flag on Linux
DTrace on Linux should not be enabled by default because not all systems will
have the proper headers installed. Only enable when --with-dtrace is passed to
the configure script.
12 years ago
Girish Ramakrishnan
2f03eaf76f
doc: tls: rejectUnauthorized defaults to true after 35607f3a
12 years ago
Scott Blomquist
66f64ae072
windows: generate ETW events to track v8 compiled code positions
Patch by Henry Rawas and Scott Blomquist.
12 years ago
Ben Noordhuis
2f5fa089e9
build: add --systemtap-includes configure switch
12 years ago
Jan Wynholds
06810b29fa
tracing: add systemtap support
12 years ago
Ben Noordhuis
ab1e66d93f
deps: upgrade libuv to 97c527a
12 years ago
isaacs
a12c42ca2f
test: Use setImmediate for recursive deferral
This should have been with 21c741f
, but didn't catch it then.
Taking our own advice.
12 years ago
isaacs
07d3b21f43
zlib: s/clear/close/ and match other close() semantics
12 years ago
Frederico Silva
cfbfaaa87d
build: let gyp choose msvs version
12 years ago