Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-console-not-call-toString.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0c1c209374ac170fc194dba0536a60a6138344a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
require('../common');
const assert = require('assert');

const func = function() {};
let toStringCalled = false;
func.toString = function() {
  toStringCalled = true;
};

require('util').inspect(func);

assert.ok(!toStringCalled);