We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 025eadf commit 4604294Copy full SHA for 4604294
test/parallel/test-console.js
@@ -42,10 +42,12 @@ assert.doesNotThrow(function() {
42
console.timeEnd('label');
43
});
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.
47
assert.throws(() => console.time(Symbol('test')),
- /^TypeError: Cannot convert a Symbol value to a string$/);
48
+ TypeError);
49
assert.throws(() => console.timeEnd(Symbol('test')),
50
51
52
53
// an Object with a custom .inspect() function
0 commit comments