OLD | NEW |
1 CONSOLE MESSAGE: line 2: [object Object] | 1 CONSOLE MESSAGE: line 2: [object Object] |
2 CONSOLE MESSAGE: line 2: [object Object] | 2 CONSOLE MESSAGE: line 2: [object Object] |
3 CONSOLE MESSAGE: line 2: [object Object],[object Object] | 3 CONSOLE MESSAGE: line 2: [object Object],[object Object] |
4 CONSOLE MESSAGE: line 2: [object Object] | 4 CONSOLE MESSAGE: line 2: [object Object] |
5 Tests that console produces instant previews for arrays and objects that have ge
tters and setters. | 5 Tests that console produces instant previews for arrays and objects that have ge
tters and setters. |
6 | 6 |
7 Before expanding accessors: | 7 Before expanding accessors: |
8 arrayLikeWithAccessors | 8 arrayLikeWithAccessors |
9 console.log(arrayLikeWithAccessors) | 9 console.log(arrayLikeWithAccessors) |
10 objectWithAccessors | 10 objectWithAccessors |
11 console.log(objectWithAccessors) | 11 console.log(objectWithAccessors) |
12 console.table(tableObject) | 12 console.table(tableObject) |
13 console.dir(objectWithAccessors) | 13 console.dir(objectWithAccessors) |
14 [(...), (...), undefined × 2, Objectbar: 2foo: 1__proto__: Object, (...), Array[
2]0: 11: 2length: 2__proto__: Array[0], (...), "value8", (...)] | 14 [(...), (...), undefined × 2, Objectbar: 2foo: 1__proto__: Object, (...), Array[
2]0: 11: 2length: 2__proto__: Array[0], (...), "value8", (...)] |
15 [(...), (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...), 8: "value8"
, 9: (...), splice: function]0: (...)get 0: function 0() { foo.bar = 1; }1: (...
)get 1: function 1() { throw new Error("arrayLikeWithAccessors"); }set 3: functi
on 3() {}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: A
rray[2]7: (...)get 7: function 7() { return [3, 4]; }8: "value8"9: (...)get 9: f
unction 9() { return NaN; }length: 10splice: function () {}__proto__: Object VM:
2 | 15 [(...), (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...), 8: "value8"
, 9: (...), splice: function]0: (...)get 0: function 0() { foo.bar = 1; }1: (...
)get 1: function 1() { throw new Error("arrayLikeWithAccessors"); }set 3: functi
on 3(_) {}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6:
Array[2]7: (...)get 7: function 7() { return [3, 4]; }8: "value8"9: (...)get 9:
function 9() { return NaN; }length: 10splice: function () {}__proto__: Object VM
:2 |
16 undefined | 16 undefined |
17 Object {0: (...), 1: (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...)
, 8: function, 9: (...)}0: (...)get 0: function 0() { baz.baz = 3; }1: (...)get
1: function 1() { throw new Error("objectWithAccessors"); }set 3: function 3() {
}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7
: (...)get 7: function 7() { return [3, 4]; }8: function func8() {}9: (...)get 9
: function 9() { return -Infinity; }__proto__: Object | 17 Object {0: (...), 1: (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...)
, 8: function, 9: (...)}0: (...)get 0: function 0() { baz.baz = 3; }1: (...)get
1: function 1() { throw new Error("objectWithAccessors"); }set 3: function 3(_)
{}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]
7: (...)get 7: function 7() { return [3, 4]; }8: function func8() {}9: (...)get
9: function 9() { return -Infinity; }__proto__: Object |
18 Object {0: (...), 1: (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...)
, 8: function, 9: (...)}0: (...)get 0: function 0() { baz.baz = 3; }1: (...)get
1: function 1() { throw new Error("objectWithAccessors"); }set 3: function 3() {
}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7
: (...)get 7: function 7() { return [3, 4]; }8: function func8() {}9: (...)get 9
: function 9() { return -Infinity; }__proto__: Object VM:2 | 18 Object {0: (...), 1: (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...)
, 8: function, 9: (...)}0: (...)get 0: function 0() { baz.baz = 3; }1: (...)get
1: function 1() { throw new Error("objectWithAccessors"); }set 3: function 3(_)
{}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]
7: (...)get 7: function 7() { return [3, 4]; }8: function func8() {}9: (...)get
9: function 9() { return -Infinity; }__proto__: Object VM:2 |
19 undefined | 19 undefined |
20 HEADER (index) | 0 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | splice | | 20 HEADER (index) | 0 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | splice | |
21 ROW (...) | (...) | (...) | Object | (...) | Array[2] | (...) | "value8" | (...)
| function | | 21 ROW (...) | (...) | (...) | Object | (...) | Array[2] | (...) | "value8" | (...)
| function | |
22 ROW (...) | (...) | (...) | Object | (...) | Array[2] | (...) | function | (...)
| | 22 ROW (...) | (...) | (...) | Object | (...) | Array[2] | (...) | function | (...)
| |
23 undefined | 23 undefined |
24 Object0: (...)get 0: function 0() { baz.baz = 3; }1: (...)get 1: function 1() {
throw new Error("objectWithAccessors"); }set 3: function 3() {}4: Object5: (...)
get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: (...)get 7: func
tion 7() { return [3, 4]; }8: function func8() {}9: (...)get 9: function 9() { r
eturn -Infinity; }__proto__: Object VM:2 | 24 Object0: (...)get 0: function 0() { baz.baz = 3; }1: (...)get 1: function 1() {
throw new Error("objectWithAccessors"); }set 3: function 3(_) {}4: Object5: (...
)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: (...)get 7: fun
ction 7() { return [3, 4]; }8: function func8() {}9: (...)get 9: function 9() {
return -Infinity; }__proto__: Object VM:2 |
25 undefined | 25 undefined |
26 | 26 |
27 Accessor property buttons count: 55 | 27 Accessor property buttons count: 55 |
28 | 28 |
29 After expanding accessors: | 29 After expanding accessors: |
30 arrayLikeWithAccessors | 30 arrayLikeWithAccessors |
31 console.log(arrayLikeWithAccessors) | 31 console.log(arrayLikeWithAccessors) |
32 objectWithAccessors | 32 objectWithAccessors |
33 console.log(objectWithAccessors) | 33 console.log(objectWithAccessors) |
34 console.table(tableObject) | 34 console.table(tableObject) |
35 console.dir(objectWithAccessors) | 35 console.dir(objectWithAccessors) |
36 [<exception>, <exception>, undefined × 2, Objectbar: 2foo: 1__proto__: Object, O
bject, Array[2]0: 11: 2length: 2__proto__: Array[0], Array[2], "value8", NaN] | 36 [<exception>, <exception>, undefined × 2, Objectbar: 2foo: 1__proto__: Object, O
bject, Array[2]0: 11: 2length: 2__proto__: Array[0], Array[2], "value8", NaN] |
37 [<exception>, <exception>, 3: undefined, 4: Object, 5: Object, 6: Array[2], 7: A
rray[2], 8: "value8", 9: NaN, splice: function]0: [Exception: ReferenceError: fo
o is not defined]get 0: function 0() { foo.bar = 1; }1: [Exception: Error: array
LikeWithAccessors]get 1: function 1() { throw new Error("arrayLikeWithAccessors"
); }set 3: function 3() {}4: Object5: Objectget 5: function 5() { return {afoo:
3, abar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: "va
lue8"9: NaNget 9: function 9() { return NaN; }length: 10splice: function () {}__
proto__: Object VM:2 | 37 [<exception>, <exception>, 3: undefined, 4: Object, 5: Object, 6: Array[2], 7: A
rray[2], 8: "value8", 9: NaN, splice: function]0: [Exception: ReferenceError: fo
o is not defined]get 0: function 0() { foo.bar = 1; }1: [Exception: Error: array
LikeWithAccessors]get 1: function 1() { throw new Error("arrayLikeWithAccessors"
); }set 3: function 3(_) {}4: Object5: Objectget 5: function 5() { return {afoo:
3, abar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: "v
alue8"9: NaNget 9: function 9() { return NaN; }length: 10splice: function () {}_
_proto__: Object VM:2 |
38 undefined | 38 undefined |
39 Object {0: <exception>, 1: <exception>, 3: undefined, 4: Object, 5: Object, 6: A
rray[2], 7: Array[2], 8: function, 9: -Infinity}0: [Exception: ReferenceError: b
az is not defined]get 0: function 0() { baz.baz = 3; }1: [Exception: Error: obje
ctWithAccessors]get 1: function 1() { throw new Error("objectWithAccessors"); }s
et 3: function 3() {}4: Object5: Objectget 5: function 5() { return {afoo: 3, ab
ar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: function
func8() {}9: -Infinityget 9: function 9() { return -Infinity; }__proto__: Objec
t | 39 Object {0: <exception>, 1: <exception>, 3: undefined, 4: Object, 5: Object, 6: A
rray[2], 7: Array[2], 8: function, 9: -Infinity}0: [Exception: ReferenceError: b
az is not defined]get 0: function 0() { baz.baz = 3; }1: [Exception: Error: obje
ctWithAccessors]get 1: function 1() { throw new Error("objectWithAccessors"); }s
et 3: function 3(_) {}4: Object5: Objectget 5: function 5() { return {afoo: 3, a
bar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: functio
n func8() {}9: -Infinityget 9: function 9() { return -Infinity; }__proto__: Obje
ct |
40 Object {0: <exception>, 1: <exception>, 3: undefined, 4: Object, 5: Object, 6: A
rray[2], 7: Array[2], 8: function, 9: -Infinity}0: [Exception: ReferenceError: b
az is not defined]get 0: function 0() { baz.baz = 3; }1: [Exception: Error: obje
ctWithAccessors]get 1: function 1() { throw new Error("objectWithAccessors"); }s
et 3: function 3() {}4: Object5: Objectget 5: function 5() { return {afoo: 3, ab
ar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: function
func8() {}9: -Infinityget 9: function 9() { return -Infinity; }__proto__: Objec
t VM:2 | 40 Object {0: <exception>, 1: <exception>, 3: undefined, 4: Object, 5: Object, 6: A
rray[2], 7: Array[2], 8: function, 9: -Infinity}0: [Exception: ReferenceError: b
az is not defined]get 0: function 0() { baz.baz = 3; }1: [Exception: Error: obje
ctWithAccessors]get 1: function 1() { throw new Error("objectWithAccessors"); }s
et 3: function 3(_) {}4: Object5: Objectget 5: function 5() { return {afoo: 3, a
bar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: functio
n func8() {}9: -Infinityget 9: function 9() { return -Infinity; }__proto__: Obje
ct VM:2 |
41 undefined | 41 undefined |
42 HEADER (index) | 0 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | splice | | 42 HEADER (index) | 0 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | splice | |
43 ROW <exception> | <exception> | undefined | Object | Object | Array[2] | Array[2
] | "value8" | NaN | function | | 43 ROW <exception> | <exception> | undefined | Object | Object | Array[2] | Array[2
] | "value8" | NaN | function | |
44 ROW <exception> | <exception> | undefined | Object | Object | Array[2] | Array[2
] | function | -Infinity | | 44 ROW <exception> | <exception> | undefined | Object | Object | Array[2] | Array[2
] | function | -Infinity | |
45 undefined | 45 undefined |
46 Object0: [Exception: ReferenceError: baz is not defined]get 0: function 0() { ba
z.baz = 3; }1: [Exception: Error: objectWithAccessors]get 1: function 1() { thro
w new Error("objectWithAccessors"); }set 3: function 3() {}4: Object5: Objectget
5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: Array[2]get 7: func
tion 7() { return [3, 4]; }8: function func8() {}9: -Infinityget 9: function 9()
{ return -Infinity; }__proto__: Object VM:2 | 46 Object0: [Exception: ReferenceError: baz is not defined]get 0: function 0() { ba
z.baz = 3; }1: [Exception: Error: objectWithAccessors]get 1: function 1() { thro
w new Error("objectWithAccessors"); }set 3: function 3(_) {}4: Object5: Objectge
t 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: Array[2]get 7: fun
ction 7() { return [3, 4]; }8: function func8() {}9: -Infinityget 9: function 9(
) { return -Infinity; }__proto__: Object VM:2 |
47 undefined | 47 undefined |
48 | 48 |
OLD | NEW |