From d0667e814e8be53d329a9c7f4849996c192395c9 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sun, 14 Apr 2019 21:37:03 +0200 Subject: util: improve function inspection This commit contains the following changes: 1) Add null prototype support for functions. 2) Safely detect async and generator functions. 3) Mark anonymous functions as such instead of just leaving out the name. PR-URL: https://github.com/nodejs/node/pull/27227 Reviewed-By: Joyee Cheung Reviewed-By: John-David Dalton Reviewed-By: Anto Aravinth Reviewed-By: Rich Trott --- test/parallel/test-repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/parallel/test-repl.js') diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index c0869c84b3..05608bd5ee 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -308,7 +308,7 @@ const errorTests = [ // Functions should not evaluate twice (#2773) { send: 'var I = [1,2,3,function() {}]; I.pop()', - expect: '[Function]' + expect: '[Function (anonymous)]' }, // Multiline object { -- cgit v1.2.3