We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a696e2e commit bbe3288Copy full SHA for bbe3288
test/parallel/test-util-format.js
@@ -25,7 +25,7 @@ assert.strictEqual(util.format('%s', symbol), 'Symbol(foo)');
25
assert.strictEqual(util.format('%j', symbol), 'undefined');
26
assert.throws(function() {
27
util.format('%d', symbol);
28
-}, TypeError);
+}, /^TypeError: Cannot convert a Symbol value to a number$/);
29
30
assert.strictEqual(util.format('%d', 42.0), '42');
31
assert.strictEqual(util.format('%d', 42), '42');
0 commit comments