summaryrefslogtreecommitdiff
path: root/test/message
Commit message (Collapse)AuthorAgeFilesLines
* lib: name EventEmitter prototype methodsBen Noordhuis2014-05-071-4/+4
| | | | | | | | | | | | | | Before this commit the EventEmitter methods were anonymous functions. V8 tries to infer names for anonymous functions based on the execution context but it frequently gets it wrong and when that happens, the stack trace is usually confusing and unhelpful. This commit names all methods so V8 can fall back to the method.name property. The above gotcha applies to all anonymous functions but is exacerbated for EventEmitter methods because those are invoked with a plenitude of different receivers. Signed-off-by: Trevor Norris <trev.norris@gmail.com>
* src: domain should not replace nextTick functionTimothy J Fontaine2014-03-031-0/+2
| | | | | | | | Previously if you cached process.nextTick and then require('domain') subsequent nextTick() calls would not be caught because enqueued functions were taking the wrong path. This keeps nextTick to a single function reference and changes the implementation details after domain has been required.
* process: separate nextTick domain logicTrevor Norris2013-02-271-1/+1
| | | | | | | It's cleaner to only load domain ticker logic when the domains are being used. This makes execution slightly quicker in both cases, and simpler from the spinner since there is no need to check if the latest callback requires use of domains.
* core: Remove the nextTick for running the main fileisaacs2013-02-275-17/+22
| | | | | | | | | | | Not necessary, since we can handle the error properly on the first tick now, even if there are event listeners, etc. Additionally, this removes the unnecessary "_needTickCallback" from startup, since Module.loadMain() will kick off a nextTick callback right after it runs the main module. Fix #4856
* src, test: downgrade to v8 3.14 apiBen Noordhuis2013-02-251-10/+0
|
* process: streamlining tick callback logicTrevor Norris2013-02-154-5/+10
| | | | | | | | | | | | | | | * Callbacks from spinner now calls its own function, separate from the tickCallback logic * MakeCallback will call a domain specific function if a domain is detected * _tickCallback assumes no domains, until nextTick receives a callback with a domain. After that _tickCallback is overridden with the domain specific implementation. * _needTickCallback runs in startup() instead of nextTick (isaacs) * Fix bug in _fatalException where exit would be called twice (isaacs) * Process.domain has a default value of null * Manually track nextTickQueue.length (will be useful later) * Update tests to reflect internal api changes
* Revert "Move MakeCallback to JS"isaacs2013-02-152-5/+0
| | | | | | | | | | This reverts commit 0109a9f90acdfdb287436676f2384f7b072fbb6a. Also included: Port all the changes to process._makeCallback into the C++ version. Immediate nextTick, etc. This yields a slight boost in several benchmarks. V8 is optimizing and deoptimizing process._makeCallback repeatedly.
* test: make tests work with newer v8Fedor Indutny2013-01-021-0/+10
|
* node: emit 'exit' when exiting with errorisaacs2012-12-293-1/+43
| | | | Fix #3555
* timers: Move list.ontimeout to separate functionisaacs2012-12-291-1/+1
|
* test-message: Add setTimeout and nextTick message testsisaacs2012-12-294-0/+73
|
* test: Update message tests for streams2isaacs2012-12-142-14/+18
|
* Print warning when maxTickDepth is reachedisaacs2012-10-294-0/+115
|
* test: Fix stdin message testsisaacs2012-09-281-4/+4
|
* test-message: fix message outputisaacs2012-08-053-45/+62
| | | | | 1. The net changes add a stack frame to stdin errors. 2. The error line numbers were overly strict in many places.
* test: stdin error messagesisaacs2012-08-022-0/+116
|
* Report errors properly from --eval and stdinisaacs2012-07-302-0/+111
|
* Update message test for new v8 behaviorisaacs2012-06-141-1/+1
|
* tests: make all message tests pass on WindowsBert Belder2012-06-133-3/+3
|
* test: v8 stack trace messages changed slightlyisaacs2012-06-011-4/+4
|
* Check for tabs in source line in DisplayExceptionLineOleg Efimov2012-05-212-0/+41
| | | | Fix for joyent/node#3280
* Revert "test: stack overflow output"isaacs2012-05-161-3/+3
| | | | | | | This reverts commit f8519e10b823f576ddd0efa76ab425f0598b1223. Recent update to V8 fixes the problem where it incorrectly reports the line number as 0 for thrown RangeErrors.
* test: stack overflow outputisaacs2012-05-151-3/+3
|
* Merge remote-tracking branch 'ry/v0.6' into v0.6-mergeisaacs2012-05-094-12/+12
|\ | | | | | | | | | | | | | | Conflicts: Makefile lib/zlib.js src/node.cc src/node.js
| * Fix exception output for module load exceptionsFelix Geisendörfer2012-05-094-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So instead of: node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ You will now see: path/to/foo.js:1 throw new Error('bar'); ^ This is a sub-set of isaacs patch here: https://github.com/joyent/node/issues/3235 The difference is that this patch purely adresses the exception output, but does not try to make any behavior changes / improvements.
| * Fix process.nextTick throw call sitesFelix Geisendörfer2012-05-094-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch now reports the proper throw call site for exceptions triggered within process.nextTick. So instead of this: node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ You will now see: mydir/myscript.js:15 throw new Error('My Error'); ^ From my testing this patch causes no performance regressions, but does greatly simplify processing the nextTickQueue.
* | test: Minor change to message/undefined_reference_in_new_contextisaacs2012-04-171-1/+1
| |
* | Lint all the JavaScripts.isaacs2012-02-182-2/+2
|/
* Tests: fix jslint issuesAndreas Madsen2012-01-172-2/+2
|
* Remove separation of libuv testsRyan Dahl2011-11-026-6/+6
|
* test: fix test/message/undefined_reference_in_new_context.jskoichik2011-11-011-1/+1
| | | | after 4d4900f, stack trace was changed.
* Fixed a lot of jslint errors.Colton Baker2011-10-052-2/+2
| | | | Fixes #1831
* Mark tests which are broken in libuvRyan Dahl2011-08-236-0/+18
|
* Fix message testskoichik2011-07-164-4/+4
| | | | | | | | | | | | | | | | V8 3.4.12.1 changed exception log format. 3.14.10: node.js:189 throw e; // process.nextTick error, or 'error' event on first tick ^ 3.4.12.1: node.js:189 throw e; // process.nextTick error, or 'error' event on first tick ^ The caret was moved.
* Merge branch 'v0.4'isaacs2011-05-076-0/+111
|\ | | | | | | | | | | | | | | | | Conflicts: lib/tls.js lib/url.js src/node_version.h test/simple/test-buffer.js test/simple/test-url.js
| * Close #974 Properly report traceless errors.isaacs2011-04-256-0/+111
| | | | | | | | Also, tests for the same.
* | Fix test/message/undefined_reference_in_new_contextRyan Dahl2011-04-011-1/+1
|/ | | | Broke after 75db199.
* Update copyright headersRyan Dahl2011-03-143-0/+63
|
* Fix undefined_reference_in_new_contextRyan Dahl2011-01-241-1/+1
|
* Adding support for require-like initialization of node,Daniel Ennis2011-01-241-0/+1
| | | | | | | | | | | | so `node foo` will load one of: ./foo.js ./foo.node ./foo/index.js ./foo/index.node Test cases added. Ensured no conflict with native names.
* Restructure src/node.js startup codeFelix Geisendörfer2011-01-241-2/+2
| | | | | This patch introduces a logical structure and sequence for the bootstrap code found src/node.js.
* windows compat: undefined_reference_in_new_context testRyan Dahl2011-01-231-1/+1
|
* Move commonjs module system into lib/module.jsFelix Geisendörfer2011-01-231-5/+5
| | | | | This de-couples NativeModule from the module system and completes the main objective of this refactoring.
* GJSLint all tests, only 3 long lines left in test-url.jsOleg Efimov2010-12-051-2/+2
| | | | | | test/simple/test-url.js:31:(0110) Line too long (82 characters). test/simple/test-url.js:39:(0110) Line too long (85 characters). test/simple/test-url.js:40:(0110) Line too long (92 characters).
* Fix global leaksRyan Dahl2010-12-042-5/+5
|
* GJSLint part of testsOleg Efimov2010-12-023-48/+48
|
* Fix indention in 'make test-message'Ryan Dahl2010-12-021-2/+2
|
* Move ev_loop out of javascriptRyan Dahl2010-11-111-1/+0
|
* Remove unneeded function wrappersJorge Chamorro Bieling2010-10-211-1/+0
|
* Fix test harness for LinuxRyan Dahl2010-10-181-5/+2
| | | | | | Mostly just upgraded tools/test.py to the latest one that's in V8. But also fixing the before and after hooks to preserve the test/tmp directory so that running tests manually usually works.