mirror of https://github.com/nodejs/node.git
13 lines
240 B
JavaScript
13 lines
240 B
JavaScript
|
var common = require('../common');
|
||
|
var assert = require('assert');
|
||
|
|
||
|
var func = function() {};
|
||
|
var toStringCalled = false;
|
||
|
func.toString = function() {
|
||
|
toStringCalled = true;
|
||
|
};
|
||
|
|
||
|
require('util').inspect(func);
|
||
|
|
||
|
assert.ok(!toStringCalled);
|