summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-04-14 21:37:03 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2019-05-02 23:22:38 +0200
commitd0667e814e8be53d329a9c7f4849996c192395c9 (patch)
treeb9bd25e8aac5995f464f732c98e27912979a6258 /test/parallel/test-repl.js
parent57fd70fc7d3918a6bd4c714fe479488391a563f6 (diff)
downloadandroid-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.js2
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
{