node/test/message
Anna Henningsen dab09877b0
module: don't cache uninitialized builtins
Don't cache the exported values of fully uninitialized builtins.
This works by adding an additional `loading` flag that is only
active during initial loading of an internal module and checking
that either the module is fully loaded or is in that state before
using its cached value.

This has the effect that builtins modules which could not be loaded
(e.g. because compilation failed due to missing stack space) can be
loaded at a later point.

Fixes: https://github.com/nodejs/node/issues/6899
PR-URL: https://github.com/nodejs/node/pull/6907
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2016-05-24 17:03:22 +02:00
..
2100bytes.js test: remove unused modules 2016-01-01 16:37:02 -08:00
2100bytes.out Fix message tests 2010-06-19 17:41:34 -07:00
console_low_stack_space.js module: don't cache uninitialized builtins 2016-05-24 17:03:22 +02:00
console_low_stack_space.out module: don't cache uninitialized builtins 2016-05-24 17:03:22 +02:00
core_line_numbers.js test: remove unnecessary assignments 2015-12-26 18:00:02 -08:00
core_line_numbers.out lib: improve module loading performance 2016-04-14 14:58:46 -04:00
error_exit.js test: remove unnecessary assignments 2015-12-26 18:00:02 -08:00
error_exit.out lib: improve module loading performance 2016-04-14 14:58:46 -04:00
eval_messages.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
eval_messages.out lib,src: refactor src/node.js into internal files 2016-03-22 19:20:01 -04:00
hello_world.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
hello_world.out Add message tests 2010-06-18 18:14:06 -07:00
max_tick_depth.js test: remove unnecessary assignments 2015-12-26 18:00:02 -08:00
max_tick_depth.out process: remove maxTickDepth from _tickCallback 2013-05-30 09:30:19 -07:00
message.status test: remove flaky status from eval_messages test 2015-10-20 12:16:00 -07:00
nexttick_throw.js test,tools: enable linting for undefined vars 2016-04-20 08:38:41 -07:00
nexttick_throw.out lib,src: refactor src/node.js into internal files 2016-03-22 19:20:01 -04:00
stack_overflow.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
stack_overflow.out bindings: update api 2013-03-20 01:11:01 +01:00
stdin_messages.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
stdin_messages.out lib,src: refactor src/node.js into internal files 2016-03-22 19:20:01 -04:00
testcfg.py test: make test runner multi-arch/mode compatible 2014-10-16 22:39:34 +02:00
throw_custom_error.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_custom_error.out test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_in_line_with_tabs.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_in_line_with_tabs.out test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_non_error.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_non_error.out test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_null.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_null.out test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_undefined.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
throw_undefined.out test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
timeout_throw.js test,tools: enable linting for undefined vars 2016-04-20 08:38:41 -07:00
timeout_throw.out timers: give Timeouts a constructor name 2016-03-21 11:21:53 -04:00
undefined_reference_in_new_context.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
undefined_reference_in_new_context.out lib: improve module loading performance 2016-04-14 14:58:46 -04:00
vm_display_runtime_error.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
vm_display_runtime_error.out lib: improve module loading performance 2016-04-14 14:58:46 -04:00
vm_display_syntax_error.js src: attach error to stack on displayErrors 2016-01-26 11:03:13 -05:00
vm_display_syntax_error.out lib: improve module loading performance 2016-04-14 14:58:46 -04:00
vm_dont_display_runtime_error.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
vm_dont_display_runtime_error.out lib: improve module loading performance 2016-04-14 14:58:46 -04:00
vm_dont_display_syntax_error.js test: remove unused assert module imports 2015-12-30 11:45:34 -08:00
vm_dont_display_syntax_error.out lib: improve module loading performance 2016-04-14 14:58:46 -04:00