diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-04-14 21:37:03 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-05-02 23:22:38 +0200 |
commit | d0667e814e8be53d329a9c7f4849996c192395c9 (patch) | |
tree | b9bd25e8aac5995f464f732c98e27912979a6258 /test/parallel/test-repl.js | |
parent | 57fd70fc7d3918a6bd4c714fe479488391a563f6 (diff) | |
download | android-node-v8-d0667e814e8be53d329a9c7f4849996c192395c9.tar.gz android-node-v8-d0667e814e8be53d329a9c7f4849996c192395c9.tar.bz2 android-node-v8-d0667e814e8be53d329a9c7f4849996c192395c9.zip |
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 <joyeec9h3@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-repl.js')
-rw-r--r-- | test/parallel/test-repl.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |