We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f7216c commit 24f79a7Copy full SHA for 24f79a7
test/parallel/test-util-format.js
@@ -46,7 +46,7 @@ assert.strictEqual(util.format('%s', symbol), 'Symbol(foo)');
46
assert.strictEqual(util.format('%j', symbol), 'undefined');
47
assert.throws(function() {
48
util.format('%d', symbol);
49
-}, TypeError);
+}, /^TypeError: Cannot convert a Symbol value to a number$/);
50
51
// Number format specifier
52
assert.strictEqual(util.format('%d'), '%d');
0 commit comments