mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
240 B
13 lines
240 B
14 years ago
|
var common = require('../common');
|
||
|
var assert = require('assert');
|
||
|
|
||
13 years ago
|
var func = function() {};
|
||
14 years ago
|
var toStringCalled = false;
|
||
13 years ago
|
func.toString = function() {
|
||
14 years ago
|
toStringCalled = true;
|
||
|
};
|
||
|
|
||
|
require('util').inspect(func);
|
||
|
|
||
|
assert.ok(!toStringCalled);
|