From e99ae7764d9fe77fb7ecadc180c55664ebfd4f19 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sat, 16 Dec 2017 04:29:40 -0200 Subject: lib: make console writable and non-enumerable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to the standard the property descriptor of console should be writable and non-enumerable. PR-URL: https://github.com/nodejs/node/pull/17708 Fixes: https://github.com/nodejs/node/issues/11805 Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso Reviewed-By: Matteo Collina Reviewed-By: Anatoli Papirovski --- test/message/console_low_stack_space.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/message') diff --git a/test/message/console_low_stack_space.js b/test/message/console_low_stack_space.js index 6b4ae8f479..9128eb49d1 100644 --- a/test/message/console_low_stack_space.js +++ b/test/message/console_low_stack_space.js @@ -16,7 +16,7 @@ function a() { try { return a(); } catch (e) { - compiledConsole = consoleDescriptor.get(); + compiledConsole = consoleDescriptor.value; if (compiledConsole.log) { // Using `console.log` itself might not succeed yet, but the code for it // has been compiled. -- cgit v1.2.3