1CONSOLE MESSAGE: line 24: function simple() {}
2CONSOLE MESSAGE: line 25: function simple() {}
3CONSOLE MESSAGE: line 24: async function asyncSimple() {}
4CONSOLE MESSAGE: line 25: async function asyncSimple() {}
5CONSOLE MESSAGE: line 24: function* genSimple() {}
6CONSOLE MESSAGE: line 25: function* genSimple() {}
7CONSOLE MESSAGE: line 24: function(){}
8CONSOLE MESSAGE: line 25: function(){}
9CONSOLE MESSAGE: line 24: function(x, y){}
10CONSOLE MESSAGE: line 25: function(x, y){}
11CONSOLE MESSAGE: line 24: function namedArgs(x) {}
12CONSOLE MESSAGE: line 25: function namedArgs(x) {}
13CONSOLE MESSAGE: line 24: function namedArgs2(x, y) {}
14CONSOLE MESSAGE: line 25: function namedArgs2(x, y) {}
15CONSOLE MESSAGE: line 24: function ({}) {}
16CONSOLE MESSAGE: line 25: function ({}) {}
17CONSOLE MESSAGE: line 24: function * whitespace ( x ) { }
18CONSOLE MESSAGE: line 25: function * whitespace ( x ) { }
19CONSOLE MESSAGE: line 24: async function whitespace2 ( x , y , z ) { }
20CONSOLE MESSAGE: line 25: async function whitespace2 ( x , y , z ) { }
21CONSOLE MESSAGE: line 28: [object Object]
22CONSOLE MESSAGE: line 29: [object Object]
231Tests that console logging different types of functions correctly.
242
25console-functions.html:24 ƒ simple() {}
26console-functions.html:25 ƒ simple()
3console-functions.js:27 ƒ simple() {}
4console-functions.js:28 ƒ simple()
275 arguments: null
286 caller: null
297 length: 0
308 name: "simple"
319 prototype: {constructor: ƒ}
3210 __proto__: ƒ ()
33 [[FunctionLocation]]: console-functions.html:10
11 [[FunctionLocation]]: console-functions.js:13
3412 [[Scopes]]: Scopes[1]
35console-functions.html:24 async ƒ asyncSimple() {}
36console-functions.html:25 async ƒ asyncSimple()
13console-functions.js:27 async ƒ asyncSimple() {}
14console-functions.js:28 async ƒ asyncSimple()
3715 arguments: (...)
3816 caller: (...)
3917 length: 0
4018 name: "asyncSimple"
4119 __proto__: AsyncFunction
42 [[FunctionLocation]]: console-functions.html:11
20 [[FunctionLocation]]: console-functions.js:14
4321 [[Scopes]]: Scopes[1]
44console-functions.html:24 ƒ* genSimple() {}
45console-functions.html:25 ƒ* genSimple()
22console-functions.js:27 ƒ* genSimple() {}
23console-functions.js:28 ƒ* genSimple()
4624 arguments: (...)
4725 caller: (...)
4826 length: 0
4927 name: "genSimple"
50 prototype: Generator {}
28 prototype: Generator {}
5129 __proto__: GeneratorFunction
52 [[FunctionLocation]]: console-functions.html:12
30 [[FunctionLocation]]: console-functions.js:15
5331 [[IsGenerator]]: true
5432 [[Scopes]]: Scopes[1]
55console-functions.html:24 ƒ (){}
56console-functions.html:25 ƒ anonymous()
33console-functions.js:27 ƒ (){}
34console-functions.js:28 ƒ anonymous()
5735 arguments: null
5836 caller: null
5937 length: 0
6038 name: ""
6139 prototype: {constructor: ƒ}
6240 __proto__: ƒ ()
63 [[FunctionLocation]]: console-functions.html:13
41 [[FunctionLocation]]: console-functions.js:16
6442 [[Scopes]]: Scopes[1]
65console-functions.html:24 ƒ (x, y){}
66console-functions.html:25 ƒ anonymous(x, y)
43console-functions.js:27 ƒ (x, y){}
44console-functions.js:28 ƒ anonymous(x, y)
6745 arguments: null
6846 caller: null
6947 length: 2
7048 name: ""
7149 prototype: {constructor: ƒ}
7250 __proto__: ƒ ()
73 [[FunctionLocation]]: console-functions.html:14
51 [[FunctionLocation]]: console-functions.js:17
7452 [[Scopes]]: Scopes[1]
75console-functions.html:24 ƒ namedArgs(x) {}
76console-functions.html:25 ƒ namedArgs(x)
53console-functions.js:27 ƒ namedArgs(x) {}
54console-functions.js:28 ƒ namedArgs(x)
7755 arguments: null
7856 caller: null
7957 length: 1
8058 name: "namedArgs"
8159 prototype: {constructor: ƒ}
8260 __proto__: ƒ ()
83 [[FunctionLocation]]: console-functions.html:15
61 [[FunctionLocation]]: console-functions.js:18
8462 [[Scopes]]: Scopes[1]
85console-functions.html:24 ƒ namedArgs2(x, y) {}
86console-functions.html:25 ƒ namedArgs2(x, y)
63console-functions.js:27 ƒ namedArgs2(x, y) {}
64console-functions.js:28 ƒ namedArgs2(x, y)
8765 arguments: null
8866 caller: null
8967 length: 2
9068 name: "namedArgs2"
9169 prototype: {constructor: ƒ}
9270 __proto__: ƒ ()
93 [[FunctionLocation]]: console-functions.html:16
71 [[FunctionLocation]]: console-functions.js:19
9472 [[Scopes]]: Scopes[1]
95console-functions.html:24 ƒ ({}) {}
96console-functions.html:25 ƒ anonymous({})
73console-functions.js:27 ƒ ({}) {}
74console-functions.js:28 ƒ anonymous({})
9775 arguments: null
9876 caller: null
9977 length: 1
10078 name: ""
10179 prototype: {constructor: ƒ}
10280 __proto__: ƒ ()
103 [[FunctionLocation]]: console-functions.html:17
81 [[FunctionLocation]]: console-functions.js:20
10482 [[Scopes]]: Scopes[1]
105console-functions.html:24 ƒ * whitespace ( x ) { }
106console-functions.html:25 ƒ * whitespace( x )
83console-functions.js:27 ƒ* whitespace( x ) { }
84console-functions.js:28 ƒ* whitespace( x )
10785 arguments: (...)
10886 caller: (...)
10987 length: 1
11088 name: "whitespace"
111 prototype: Generator {}
89 prototype: Generator {}
11290 __proto__: GeneratorFunction
113 [[FunctionLocation]]: console-functions.html:18
91 [[FunctionLocation]]: console-functions.js:21
11492 [[IsGenerator]]: true
11593 [[Scopes]]: Scopes[1]
116console-functions.html:24 async ƒ whitespace2 ( x , y , z ) { }
117console-functions.html:25 async ƒ whitespace2( x , y , z )
94console-functions.js:27 async ƒ whitespace2( x , y , z ) { }
95console-functions.js:28 async ƒ whitespace2( x , y , z )
11896 arguments: (...)
11997 caller: (...)
12098 length: 3
12199 name: "whitespace2"
122100 __proto__: AsyncFunction
123 [[FunctionLocation]]: console-functions.html:19
101 [[FunctionLocation]]: console-functions.js:22
124102 [[Scopes]]: Scopes[1]
125console-functions.html:28 Object
103console-functions.js:31 {func0: ƒ, func1: ƒ, func2: ƒ, func3: ƒ, func4: ƒ, …}
126104 func0: ƒ simple()
127105 func1: async ƒ asyncSimple()
128106 func2: ƒ* genSimple()
131109 func5: ƒ namedArgs(x)
132110 func6: ƒ namedArgs2(x, y)
133111 func7: ƒ ({})
134 func8: ƒ * whitespace( x )
112 func8: ƒ* whitespace( x )
135113 func9: async ƒ whitespace2( x , y , z )
136114 __proto__: Object
137console-functions.html:29 Object
115console-functions.js:32 Object
138116 func0: ƒ simple()
139117 func1: async ƒ asyncSimple()
140118 func2: ƒ* genSimple()
143121 func5: ƒ namedArgs(x)
144122 func6: ƒ namedArgs2(x, y)
145123 func7: ƒ ({})
146 func8: ƒ * whitespace( x )
124 func8: ƒ* whitespace( x )
147125 func9: async ƒ whitespace2( x , y , z )
148126 __proto__: Object
149127