Commit 55872277 authored by Dmitry Gozman's avatar Dmitry Gozman Committed by Commit Bot

Fix console-format-es6.js

Bug: none
Change-Id: I875bf9ad5eea00d1c1965ac280d0dce46215624b
Reviewed-on: https://chromium-review.googlesource.com/896871Reviewed-by: default avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533935}
parent c0e6c9d1
Tests that console properly displays information about ES6 features. Tests that console properly displays information about ES6 features.
console-format-es6.js:15 Promise {<rejected>: -0} console-format-es6.js:15 Promise {<rejected>: -0}
console-format-es6.js:16 [Promise] console-format-es6.js:16 [Promise]
globals[0] globals[0]
Promise {<rejected>: -0} Promise {<rejected>: -0}
console-format-es6.js:15 Promise {<resolved>: 1} console-format-es6.js:15 Promise {<resolved>: 1}
console-format-es6.js:16 [Promise] console-format-es6.js:16 [Promise]
globals[1] globals[1]
Promise {<resolved>: 1} Promise {<resolved>: 1}
console-format-es6.js:15 Promise {<pending>} console-format-es6.js:15 Promise {<pending>}
console-format-es6.js:16 [Promise] console-format-es6.js:16 [Promise]
globals[2] globals[2]
Promise {<pending>} Promise {<pending>}
console-format-es6.js:15 Symbol() console-format-es6.js:15 Symbol()
console-format-es6.js:16 [Symbol()] console-format-es6.js:16 [Symbol()]
globals[3] globals[3]
...@@ -24,83 +24,83 @@ console-format-es6.js:15 {a: Symbol(), Symbol(a): 2} ...@@ -24,83 +24,83 @@ console-format-es6.js:15 {a: Symbol(), Symbol(a): 2}
console-format-es6.js:16 [{…}] console-format-es6.js:16 [{…}]
globals[5] globals[5]
{a: Symbol(), Symbol(a): 2} {a: Symbol(), Symbol(a): 2}
console-format-es6.js:15 Map(1) {{…} => {…}} console-format-es6.js:15 Map(1) {{…} => {…}}
console-format-es6.js:16 [Map(1)] console-format-es6.js:16 [Map(1)]
globals[6] globals[6]
Map(1) {{…} => {…}} Map(1) {{…} => {…}}
console-format-es6.js:15 WeakMap {{…} => {…}} console-format-es6.js:15 WeakMap {{…} => {…}}
console-format-es6.js:16 [WeakMap] console-format-es6.js:16 [WeakMap]
globals[7] globals[7]
WeakMap {{…} => {…}} WeakMap {{…} => {…}}
console-format-es6.js:15 Set(1) {{…}} console-format-es6.js:15 Set(1) {{…}}
console-format-es6.js:16 [Set(1)] console-format-es6.js:16 [Set(1)]
globals[8] globals[8]
Set(1) {{…}} Set(1) {{…}}
console-format-es6.js:15 WeakSet {{…}} console-format-es6.js:15 WeakSet {{…}}
console-format-es6.js:16 [WeakSet] console-format-es6.js:16 [WeakSet]
globals[9] globals[9]
WeakSet {{…}} WeakSet {{…}}
console-format-es6.js:15 Map(1) {Map(0) => WeakMap} console-format-es6.js:15 Map(1) {Map(0) => WeakMap}
console-format-es6.js:16 [Map(1)] console-format-es6.js:16 [Map(1)]
globals[10] globals[10]
Map(1) {Map(0) => WeakMap} Map(1) {Map(0) => WeakMap}
console-format-es6.js:15 Map(1) {Map(1) => WeakMap} console-format-es6.js:15 Map(1) {Map(1) => WeakMap}
console-format-es6.js:16 [Map(1)] console-format-es6.js:16 [Map(1)]
globals[11] globals[11]
Map(1) {Map(1) => WeakMap} Map(1) {Map(1) => WeakMap}
console-format-es6.js:15 Set(1) {WeakSet} console-format-es6.js:15 Set(1) {WeakSet}
console-format-es6.js:16 [Set(1)] console-format-es6.js:16 [Set(1)]
globals[12] globals[12]
Set(1) {WeakSet} Set(1) {WeakSet}
console-format-es6.js:15 Set(1) {WeakSet} console-format-es6.js:15 Set(1) {WeakSet}
console-format-es6.js:16 [Set(1)] console-format-es6.js:16 [Set(1)]
globals[13] globals[13]
Set(1) {WeakSet} Set(1) {WeakSet}
console-format-es6.js:15 Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …} console-format-es6.js:15 Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …}
console-format-es6.js:16 [Map(6)] console-format-es6.js:16 [Map(6)]
globals[14] globals[14]
Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …} Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …}
console-format-es6.js:15 genFunction {<suspended>} console-format-es6.js:15 genFunction {<suspended>}
console-format-es6.js:16 [genFunction] console-format-es6.js:16 [genFunction]
globals[15] globals[15]
genFunction {<suspended>} genFunction {<suspended>}
Expanded all messages Expanded all messages
console-format-es6.js:15 Promise {<rejected>: -0} console-format-es6.js:15 Promise {<rejected>: -0}
__proto__: Promise __proto__: Promise
[[PromiseStatus]]: "rejected" [[PromiseStatus]]: "rejected"
[[PromiseValue]]: -0 [[PromiseValue]]: -0
console-format-es6.js:16 [Promise] console-format-es6.js:16 [Promise]
0: Promise {<rejected>: -0} 0: Promise {<rejected>: -0}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[0] globals[0]
Promise {<rejected>: -0} Promise {<rejected>: -0}
__proto__: Promise __proto__: Promise
[[PromiseStatus]]: "rejected" [[PromiseStatus]]: "rejected"
[[PromiseValue]]: -0 [[PromiseValue]]: -0
console-format-es6.js:15 Promise {<resolved>: 1} console-format-es6.js:15 Promise {<resolved>: 1}
__proto__: Promise __proto__: Promise
[[PromiseStatus]]: "resolved" [[PromiseStatus]]: "resolved"
[[PromiseValue]]: 1 [[PromiseValue]]: 1
console-format-es6.js:16 [Promise] console-format-es6.js:16 [Promise]
0: Promise {<resolved>: 1} 0: Promise {<resolved>: 1}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[1] globals[1]
Promise {<resolved>: 1} Promise {<resolved>: 1}
__proto__: Promise __proto__: Promise
[[PromiseStatus]]: "resolved" [[PromiseStatus]]: "resolved"
[[PromiseValue]]: 1 [[PromiseValue]]: 1
console-format-es6.js:15 Promise {<pending>} console-format-es6.js:15 Promise {<pending>}
__proto__: Promise __proto__: Promise
[[PromiseStatus]]: "pending" [[PromiseStatus]]: "pending"
[[PromiseValue]]: undefined [[PromiseValue]]: undefined
console-format-es6.js:16 [Promise] console-format-es6.js:16 [Promise]
0: Promise {<pending>} 0: Promise {<pending>}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[2] globals[2]
Promise {<pending>} Promise {<pending>}
__proto__: Promise __proto__: Promise
[[PromiseStatus]]: "pending" [[PromiseStatus]]: "pending"
[[PromiseValue]]: undefined [[PromiseValue]]: undefined
...@@ -135,139 +135,139 @@ globals[5] ...@@ -135,139 +135,139 @@ globals[5]
Symbol(a): 2 Symbol(a): 2
get getter: ƒ getter() get getter: ƒ getter()
__proto__: Object __proto__: Object
console-format-es6.js:15 Map(1) {{…} => {…}} console-format-es6.js:15 Map(1) {{…} => {…}}
size: (...) size: (...)
__proto__: Map __proto__: Map
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: {Object => Object} 0: {Object => Object}
length: 1 length: 1
console-format-es6.js:16 [Map(1)] console-format-es6.js:16 [Map(1)]
0: Map(1) {{…} => {…}} 0: Map(1) {{…} => {…}}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[6] globals[6]
Map(1) {{…} => {…}} Map(1) {{…} => {…}}
size: (...) size: (...)
__proto__: Map __proto__: Map
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: {Object => Object} 0: {Object => Object}
length: 1 length: 1
console-format-es6.js:15 WeakMap {{…} => {…}} console-format-es6.js:15 WeakMap {{…} => {…}}
__proto__: WeakMap __proto__: WeakMap
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: {Object => Object} 0: {Object => Object}
length: 1 length: 1
console-format-es6.js:16 [WeakMap] console-format-es6.js:16 [WeakMap]
0: WeakMap {{…} => {…}} 0: WeakMap {{…} => {…}}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[7] globals[7]
WeakMap {{…} => {…}} WeakMap {{…} => {…}}
__proto__: WeakMap __proto__: WeakMap
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: {Object => Object} 0: {Object => Object}
length: 1 length: 1
console-format-es6.js:15 Set(1) {{…}} console-format-es6.js:15 Set(1) {{…}}
size: (...) size: (...)
__proto__: Set __proto__: Set
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: Object 0: Object
length: 1 length: 1
console-format-es6.js:16 [Set(1)] console-format-es6.js:16 [Set(1)]
0: Set(1) {{…}} 0: Set(1) {{…}}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[8] globals[8]
Set(1) {{…}} Set(1) {{…}}
size: (...) size: (...)
__proto__: Set __proto__: Set
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: Object 0: Object
length: 1 length: 1
console-format-es6.js:15 WeakSet {{…}} console-format-es6.js:15 WeakSet {{…}}
__proto__: WeakSet __proto__: WeakSet
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: Object 0: Object
length: 1 length: 1
console-format-es6.js:16 [WeakSet] console-format-es6.js:16 [WeakSet]
0: WeakSet {{…}} 0: WeakSet {{…}}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[9] globals[9]
WeakSet {{…}} WeakSet {{…}}
__proto__: WeakSet __proto__: WeakSet
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: Object 0: Object
length: 1 length: 1
console-format-es6.js:15 Map(1) {Map(0) => WeakMap} console-format-es6.js:15 Map(1) {Map(0) => WeakMap}
size: (...) size: (...)
__proto__: Map __proto__: Map
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: {Map(0) => WeakMap} 0: {Map(0) => WeakMap}
length: 1 length: 1
console-format-es6.js:16 [Map(1)] console-format-es6.js:16 [Map(1)]
0: Map(1) {Map(0) => WeakMap} 0: Map(1) {Map(0) => WeakMap}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[10] globals[10]
Map(1) {Map(0) => WeakMap} Map(1) {Map(0) => WeakMap}
size: (...) size: (...)
__proto__: Map __proto__: Map
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: {Map(0) => WeakMap} 0: {Map(0) => WeakMap}
length: 1 length: 1
console-format-es6.js:15 Map(1) {Map(1) => WeakMap} console-format-es6.js:15 Map(1) {Map(1) => WeakMap}
size: (...) size: (...)
__proto__: Map __proto__: Map
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: {Map(1) => WeakMap} 0: {Map(1) => WeakMap}
length: 1 length: 1
console-format-es6.js:16 [Map(1)] console-format-es6.js:16 [Map(1)]
0: Map(1) {Map(1) => WeakMap} 0: Map(1) {Map(1) => WeakMap}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[11] globals[11]
Map(1) {Map(1) => WeakMap} Map(1) {Map(1) => WeakMap}
size: (...) size: (...)
__proto__: Map __proto__: Map
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: {Map(1) => WeakMap} 0: {Map(1) => WeakMap}
length: 1 length: 1
console-format-es6.js:15 Set(1) {WeakSet} console-format-es6.js:15 Set(1) {WeakSet}
size: (...) size: (...)
__proto__: Set __proto__: Set
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: WeakSet 0: WeakSet
length: 1 length: 1
console-format-es6.js:16 [Set(1)] console-format-es6.js:16 [Set(1)]
0: Set(1) {WeakSet} 0: Set(1) {WeakSet}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[12] globals[12]
Set(1) {WeakSet} Set(1) {WeakSet}
size: (...) size: (...)
__proto__: Set __proto__: Set
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: WeakSet 0: WeakSet
length: 1 length: 1
console-format-es6.js:15 Set(1) {WeakSet} console-format-es6.js:15 Set(1) {WeakSet}
size: (...) size: (...)
__proto__: Set __proto__: Set
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: WeakSet 0: WeakSet
length: 1 length: 1
console-format-es6.js:16 [Set(1)] console-format-es6.js:16 [Set(1)]
0: Set(1) {WeakSet} 0: Set(1) {WeakSet}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[13] globals[13]
Set(1) {WeakSet} Set(1) {WeakSet}
size: (...) size: (...)
__proto__: Set __proto__: Set
[[Entries]]: Array(1) [[Entries]]: Array(1)
0: WeakSet 0: WeakSet
length: 1 length: 1
console-format-es6.js:15 Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …} console-format-es6.js:15 Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …}
size: (...) size: (...)
__proto__: Map __proto__: Map
[[Entries]]: Array(6) [[Entries]]: Array(6)
...@@ -279,11 +279,11 @@ console-format-es6.js:15 Map(6) {" from str " => " to str ", undefined => undefi ...@@ -279,11 +279,11 @@ console-format-es6.js:15 Map(6) {" from str " => " to str ", undefined => undefi
5: {Array(1) => Array(1)} 5: {Array(1) => Array(1)}
length: 6 length: 6
console-format-es6.js:16 [Map(6)] console-format-es6.js:16 [Map(6)]
0: Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …} 0: Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[14] globals[14]
Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …} Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, {…} => {…}, …}
size: (...) size: (...)
__proto__: Map __proto__: Map
[[Entries]]: Array(6) [[Entries]]: Array(6)
...@@ -294,22 +294,22 @@ Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 => ...@@ -294,22 +294,22 @@ Map(6) {" from str " => " to str ", undefined => undefined, null => null, 42 =>
4: {Object => Object} 4: {Object => Object}
5: {Array(1) => Array(1)} 5: {Array(1) => Array(1)}
length: 6 length: 6
console-format-es6.js:15 genFunction {<suspended>} console-format-es6.js:15 genFunction {<suspended>}
__proto__: Generator __proto__: Generator
[[GeneratorStatus]]: "suspended" [[GeneratorStatus]]: "suspended"
[[GeneratorFunction]]: ƒ* () [[GeneratorFunction]]: ƒ *()
[[GeneratorReceiver]]: Window [[GeneratorReceiver]]: Window
[[GeneratorLocation]]: console-format-es6.js:62 [[GeneratorLocation]]: console-format-es6.js:62
[[Scopes]]: Scopes[2] [[Scopes]]: Scopes[2]
console-format-es6.js:16 [genFunction] console-format-es6.js:16 [genFunction]
0: genFunction {<suspended>} 0: genFunction {<suspended>}
length: 1 length: 1
__proto__: Array(0) __proto__: Array(0)
globals[15] globals[15]
genFunction {<suspended>} genFunction {<suspended>}
__proto__: Generator __proto__: Generator
[[GeneratorStatus]]: "suspended" [[GeneratorStatus]]: "suspended"
[[GeneratorFunction]]: ƒ* () [[GeneratorFunction]]: ƒ *()
[[GeneratorReceiver]]: Window [[GeneratorReceiver]]: Window
[[GeneratorLocation]]: console-format-es6.js:62 [[GeneratorLocation]]: console-format-es6.js:62
[[Scopes]]: Scopes[2] [[Scopes]]: Scopes[2]
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
function advance() { function advance() {
var next = current + 1; var next = current + 1;
if (next == total.description) if (next == total)
finish(); finish();
else else
loopOverGlobals(next, total); loopOverGlobals(next, total);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment