summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* build: remove requirement on GCC version on win32node-reviewJulien Gilli2014-11-031-1/+1
|
* build: fix issue with ETW support on win32Julien Gilli2014-11-033-8/+18
|
* configure: require > 4.7.0 if using GCCTimothy J Fontaine2014-10-241-2/+4
|
* Revert "gyp: fix solaris builds, probably?!"Timothy J Fontaine2014-10-241-7/+1
| | | | This reverts commit 6a3e38af85203eff66cd6c3907b5cb0389b569b2.
* dtrace: fix ustack helperFedor Indutny2014-10-171-1/+1
| | | | | AsciiString is OneByteString now, use ONEBYTESTRINGTAG for ustack helper.
* deps: fix after merge, should be fixup into update commitFedor Indutny2014-10-171-2/+6
|
* deps: preemptively land `signbit` fix for solarisFedor Indutny2014-10-172-28/+0
| | | | See https://codereview.chromium.org/642203003/
* build: generate files after detecting compilerTimothy J Fontaine2014-10-161-9/+8
|
* gyp: fix solaris builds, probably?!Fedor Indutny2014-10-161-1/+7
|
* deps: fix postmortem-metadata generator in v8Refael Ackermann2014-10-161-9/+5
| | | | | Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: https://github.com/joyent/node/pull/8476
* test: fix error messages after v8 upgradeFedor Indutny2014-10-162-8/+6
|
* gyp: build with gnu++0x for the sake of new v8Fedor Indutny2014-10-161-1/+7
| | | | | The new v8 doesn't build on non gnu++0x, set it to a proper value for all systems.
* v8_platform: provide default v8::Platform implFedor Indutny2014-10-164-5/+248
| | | | Provide default Platform implementation for v8's purposes.
* deps: update v8 to 3.29.93.1Fedor Indutny2014-10-161288-65241/+83065
|
* streams: make setDefaultEncoding() throwBrian White2014-10-092-14/+8
| | | | | | | PR-URL: https://github.com/joyent/node/pull/8529 Fixes: f04f3a0 "streams: set default encoding for writable streams" [trev.norris@gmail.com: update tests to check if throws] Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* doc: correct createSecureContextWang Xinyong2014-10-092-3/+1
| | | | | | | | Remove incorrect stablity indication of tls.createSecureContext, and format stablity indication of crypto.createCredentials. Fixes: e50749 "doc: document `tls.createSecureContext`" Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* test: fix test-child-process-spawn-typeerrorAlexis Campailla2014-10-091-2/+2
| | | | | | | | You cannot spawn 'dir' on Windows because it's not an executable. Also, some people might have 'ls' on their path on Windows, so I changed invalidCmd to something that's highly unlikely to exist. Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* doc: fix wording and punctuation in modulesStiliyan Lazarov2014-10-081-4/+4
| | | | | [trev.norris@gmail.com: break lines at 80 characters] Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* crypto: createDiffieHellman throw for bad argsTrevor Norris2014-10-082-0/+21
| | | | | | | | Previously crypto.createDiffieHellman() would fail silently when a bad argument was passed for prime/prime_length. Now throws TypeError. Fixes: https://github.com/joyent/node/issues/8480 Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* test: fix debug-signal-cluster after da updateFedor Indutny2014-10-082-4/+32
| | | | | | | | | | The cluster children are hitting breakpoint at `cluster.onread` and hanging on a Semaphore wait now. This prevents them from disconnecting gracefully. Considering that the test is checking different thing, the cluster children needs to be force killed from the grand parent process. Reviewed-By: Trevor Norris <trevnorris@gmail.com> PR-URL: https://github.com/joyent/node/pull/8476
* src, test: fixup after v8 updateFedor Indutny2014-10-089-35/+44
| | | | | | | | | | | | | Because of behavior change of some V8 APIs (they mostly became more strict), following modules needed to be fixed: * crypto: duplicate prototype methods are not allowed anymore * contextify: some TryCatch trickery, the binding was using it incorrectly * util: maximum call stack error is now crashing in a different place Reviewed-By: Trevor Norris <trevnorris@gmail.com> PR-URL: https://github.com/joyent/node/pull/8476
* cluster: do not signal children in debug modeFedor Indutny2014-10-081-5/+23
| | | | | | | | | Do not send signal to children if they are already in debug mode. Node.js on Windows does not register signal handler, and thus calling `process._debugProcess()` will throw an error. Reviewed-By: Trevor Norris <trevnorris@gmail.com> PR-URL: https://github.com/joyent/node/pull/8476
* deps: re-implement debugger-agentFedor Indutny2014-10-0817-93/+1009
| | | | | Reviewed-By: Trevor Norris <trevnorris@gmail.com> PR-URL: https://github.com/joyent/node/pull/8476
* deps: fix postmortem-metadata generator in v8Refael Ackermann2014-10-081-9/+5
| | | | | Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: https://github.com/joyent/node/pull/8476
* deps: apply floating irhydra patch to v8Fedor Indutny2014-10-085-7/+34
| | | | | Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: https://github.com/joyent/node/pull/8476
* deps: update v8 to 3.28.73Refael Ackermann2014-10-081662-74649/+245109
| | | | | Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: https://github.com/joyent/node/pull/8476
* tls_wrap: ignore ZERO_RETURN after close_notifyFedor Indutny2014-10-081-0/+8
| | | | | | | | Do not call SSL_read() and ignore ZERO_RETURN if the connection was shutdown and there could not be any reads. Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: https://github.com/joyent/node/pull/8519
* buffer, doc: misc. fix and cleanupTrevor Norris2014-10-082-24/+43
| | | | | | | | | | * Add official documentation that a Buffer instance is a viable argument when instantiating a new Buffer. * Properly set the poolOffset when a buffer needs to be truncated. * Add comments clarifying specific peculiar coding choices. * Remove a level of unnecessary indentation. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* src: update use of ExternalArrayType constantsTrevor Norris2014-10-083-8/+8
| | | | | | Continuation of 4809c7a to update the use of v8::ExternalArrayType. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* tools: fix for testing openssl integrationsRefael Ackermann2014-10-081-2/+2
| | | | | | | | | Windows doesn't resolve ".." the way we expect it for symlinks and junctions. PR-URL: https://github.com/joyent/node/pull/8489 Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-by: Fedor Indutny <fedor@indutny.com>
* src: fix jslint warningTrevor Norris2014-10-081-1/+2
| | | | Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* smalloc: update use of ExternalArrayType constantsTrevor Norris2014-10-082-10/+11
| | | | | | | The constants in enum v8::ExternalArrayType have been changed. The old values are there for legacy reasons, but it's best to update anyway. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* doc: add missing semicolonsSteve Mao2014-10-071-9/+9
| | | | | PR-URL: https://github.com/joyent/node/pull/8498 Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* streams: set default encoding for writable streamsJohnny Ray2014-10-073-0/+95
| | | | | | | | Add API Writable#setDefaultEncoding(). PR-URL: https://github.com/joyent/node/pull/8483 Fixes: https://github.com/joyent/node/issues/7159 Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* build: i18n: py27 -> py26 dependencySteven R. Loomis2014-10-071-68/+73
| | | | | | | Move from argparse to optparse for dependency management. Fixes: https://github.com/joyent/node/pull/7719#issuecomment-56868172 Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* build: i18n: move noisy variables to separate gypiSteven R. Loomis2014-10-073-9/+26
| | | | | Fixes: https://github.com/joyent/node/issues/7676#issuecomment-57535890 Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* url: fixed encoding for slash switching emulation.Evan Rutledge Borden2014-10-062-4/+32
| | | | | | Fixes: https://github.com/joyent/node/issues/8458 Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
* doc: improve readLine.pause()Victor Widell2014-10-061-0/+2
| | | | | | | | | | | The docs for readLine.pause are misleading. I seriously spent hours on this. If it isn't a bug, at least it should be well documented. Someone else stumbled on this too: http://stackoverflow.com/questions/21341050/pausing-readline-in-node-js Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
* doc: Update net.markdownSteve Sharp2014-10-061-0/+1
| | | | | | | | Associates link to dns.lookup() with proper URL. Fixes: https://github.com/joyent/node/issues/8018 Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
* util: add es6 Symbol support for `util.inspect`gyson2014-10-032-0/+13
| | | | | | | | | * `util.inspect` cannot accept es6 symbol primitive * It will throw exception if do `util.inspect(Symbol())` * This also affects repl, console.log, etc. Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
* buffer: add generic functions for (u)int opsYazhong Liu2014-10-033-2/+278
| | | | | | | | | | | | | | | Add generic functions for (U)Int read/write operations on Buffers. These support up to and including 48 bit reads and writes. Include documentation and tests. Additional work done by Trevor Norris to include 40 and 48 bit write support. Because bitwise operations cannot be used on values greater than 32 bits, the operations have been replaced with mathematical calculations. Regardless, they are still faster than floating point operations. Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* buffer: mv floating point read/write checks to JSTrevor Norris2014-10-012-41/+99
| | | | | | | | | | Performance improvement by moving checks for floating point operations to JS and doing the operation on a protected internal function that assumes all arguments are correct. Still abort if the operation overflows memory. This can only be caused if the Buffer's length property isn't the same as the actual internal length. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* readline: should not require an output stream.Julien Gilli2014-10-013-17/+81
| | | | | | | | | Passing null as the output stream to readline.Interface()'s constructor is now supported. Any output written by readline is just discarded. It makes it easier to use readline just as a line parser. Fixes: https://github.com/joyent/node/issues/4408 Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* node: avoid automatic microtask runsVladimir Kurchatkin2014-10-016-0/+252
| | | | | | | | | | | | | | | | | | | Since we are taking control of the microtask queue it makes sense to disable autorun and only run microtasks when necessary. Just setting isolate->SetAutorunMicrotasks(false) would cause _tickCallback() not to be called. Automatically running the microtask queue will cause it to run: * After callback invocation * Inside _tickCallback() * After _tickCallback() invocation The third one is unnecessary as the microtask queue is guaranteed to be empty at this point. The first only needs to be run manually when _tickCallback() isn't going to be called by MakeCallback(). Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* url: make query() consistentGabriel Wicke2014-10-013-3/+21
| | | | | | | | | | | Match the behavior of the slow path by setting url.query to an empty object when the url contains no query, but query parsing is requested. Also add a test for this case, and update the documents to clearly reflect this behavior. Fixes: https://github.com/joyent/node/issues/8332 Reviewed-by: Trevor Norris <trev.norris@gmail.com>
* build, i18n: improve Intl build, add "--with-intl"Steven R. Loomis2014-10-0116-20/+1605
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The two main goals of this change are: - To make it easier to build the Intl option using ICU (particularly, using a newer ICU than v8/Chromium's version) - To enable a much smaller ICU build with only English support The goal here is to get node.js binaries built this way by default so that the Intl API can be used. Additional data can be added at execution time (see Readme and wiki) More details are at https://github.com/joyent/node/pull/7719 In particular, this change adds the "--with-intl=" configure option to provide more ways of building "Intl": - "full-icu" picks up an ICU from deps/icu - "small-icu" is similar, but builds only English - "system-icu" uses pkg-config to find an installed ICU - "none" does nothing (no Intl) For Windows builds, the "full-icu" or "small-icu" options are added to vcbuild.bat. Note that the existing "--with-icu-path" option is not removed from configure, but may not be used alongside the new option. Wiki changes have already been made on https://github.com/joyent/node/wiki/Installation and a new page created at https://github.com/joyent/node/wiki/Intl (marked as provisional until this change lands.) Summary of changes: * README.md : doc updates * .gitignore : added "deps/icu" as this is the location where ICU is unpacked to. * Makefile : added the tools/icu/* files to cpplint, but excluded a problematic file. * configure : added the "--with-intl" option mentioned above. Calculate at config time the list of ICU source files to use and data packaging options. * node.gyp : add the new files src/node_i18n.cc/.h as well as ICU linkage. * src/node.cc : add call into node::i18n::InitializeICUDirectory(icu_data_dir) as well as new --icu-data-dir option and NODE_ICU_DATA env variable to configure ICU data loading. This loading is only relevant in the "small" configuration. * src/node_i18n.cc : new source file for the above Initialize.. function, to setup ICU as needed. * tools/icu : new directory with some tools needed for this build. * tools/icu/icu-generic.gyp : new .gyp file that builds ICU in some new ways, both on unix/mac and windows. * tools/icu/icu-system.gyp : new .gyp file to build node against a pkg-config detected ICU. * tools/icu/icu_small.json : new config file for the "English-only" small build. * tools/icu/icutrim.py : new tool for trimming down ICU data. Reads the above .json file. * tools/icu/iculslocs.cc : new tool for repairing ICU data manifests after trim operation. * tools/icu/no-op.cc : dummy file to force .gyp into using a C++ linker. * vcbuild.bat : added small-icu and full-icu options, to call into configure. * Fixed toolset dependencies, see https://github.com/joyent/node/pull/7719#issuecomment-54641687 Note that because of a bug in gyp {CC,CXX}_host must also be set. Otherwise gcc/g++ will be used by default for part of the build. Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-by: Fedor Indutny <fedor@indutny.com>
* doc: note stdout and stderr special behaviors.Julien Fontanet2014-10-011-2/+4
| | | | | Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
* http: Improve _addHeaderLines methodJackson Tian2014-09-301-1/+2
| | | | | Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
* buffer: fix and cleanup fill()Trevor Norris2014-09-294-53/+91
| | | | | | | | | | | | | | | | | | | Running fill() with an empty string would cause Node to hang indefinitely. Now it will return without having operated on the buffer. User facing function has been pulled into JS to perform all initial value checks and coercions. The C++ method has been placed on the "internal" object. Coerced non-string values to numbers to match v0.10 support. Simplified logic and changed a couple variable names. Added tests for fill() and moved them all to the beginning of buffer-test.js since many other tests depend on fill() working properly. Fixes: https://github.com/joyent/node/issues/8469 Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* doc: fix optional parameter parsingTrevor Norris2014-09-2920-82/+99
| | | | | | | | The parameter parser specifically looked for the old bracket syntax. This generated a lot of warnings when building the docs. Those warnings have been fixed by changing the parsing logic. Signed-off-by: Trevor Norris <trev.norris@gmail.com>