| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 025eadf commit 4604294
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,10 +42,12 @@ assert.doesNotThrow(function() { | |||
| 42 | 42 | console.timeEnd('label'); | |
| 43 | 43 | }); | |
| 44 | 44 | ||
| 45 | + // Check that the `Error` is a `TypeError` but do not check the message as it | ||
| 46 | + // will be different in different JavaScript engines. | ||
| 45 | 47 | assert.throws(() => console.time(Symbol('test')), | |
| 46 | - /^TypeError: Cannot convert a Symbol value to a string$/); | ||
| 48 | + TypeError); | ||
| 47 | 49 | assert.throws(() => console.timeEnd(Symbol('test')), | |
| 48 | - /^TypeError: Cannot convert a Symbol value to a string$/); | ||
| 50 | + TypeError); | ||
| 49 | 51 | ||
| 50 | 52 | ||
| 51 | 53 | // an Object with a custom .inspect() function | |
| Back | FazBrowse Home | New Git URL |
0 commit comments