Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: update NOTES.md #131

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Chrome:

```js
console.assert(false, "robert keeps %s on his balcony", {foo: "bar"})
Assertion failed: robert keeps %s on his balcony Object {foo: "bar"}
Assertion failed: robert keeps %s on his balcony {foo: "bar"}
```

## console.table - printing of strings
Expand Down Expand Up @@ -254,7 +254,7 @@ console.count({})
undefined

console.count([])
: 1
[object Array]: 1
undefined
```

Expand Down Expand Up @@ -286,7 +286,7 @@ Chrome:

```js
console.count()
: 1
default: 1
undefined
```

Expand Down Expand Up @@ -318,11 +318,11 @@ Chrome:

```js
console.count()
: 1
default: 1
undefined

console.count("")
: 2
1
undefined
```

Expand Down Expand Up @@ -415,11 +415,12 @@ Chrome:
```js
console.time()
console.time(undefined)
Timer 'default' already exists

console.timeEnd()
default: <time in ms here>
console.timeEnd()
undefined: <time in ms here>
Timer 'default' does not exist
```

Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=696798
Expand All @@ -440,6 +441,7 @@ Chrome:
console.time({ toString() { return 'conversion' } }) // timer started with label `[object Object]`

console.timeEnd('conversion')
Timer 'conversion' does not exist
console.timeEnd({})
[object Object]: <time in ms here>

Expand All @@ -456,4 +458,4 @@ Edge:
console.time({ toString() { throw new Error("Farolino") } }) // toString called, no error thrown, no timer started
```

Bug: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11201116/
Bug: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11201116/
Binary file modified images/notes/console-table-add-args-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/notes/console-table-custom-index-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/notes/console-table-set-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/notes/console-table-string-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.