Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add test cases for #1944.

  • Loading branch information...
TooTallNate authored and koichik committed Oct 26, 2011
1 parent ebefe77 commit 4fb2ac5be1ec2be2c1d97b7c70be8423dbae2db4
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/simple/test-util-inspect.js
@@ -62,3 +62,16 @@ assert.ok(ex.indexOf('[type]') != -1);
// GH-1941
// should not throw:
assert.equal(util.inspect(Object.create(Date.prototype)), '{}')

// GH-1944
assert.doesNotThrow(function () {
var d = new Date();
d.toUTCString = null;
util.inspect(d);
});

assert.doesNotThrow(function () {
var r = /regexp/;
r.toString = null;
util.inspect(r);
});

0 comments on commit 4fb2ac5

Please sign in to comment.
You can’t perform that action at this time.