exports.assert = function(expression) {
if (!expression) {
var arr = Array.prototype.slice.call(arguments, 1);
- process.assert(false, format.apply(this, arr));
+ require('assert').ok(false, format.apply(this, arr));
}
};
var EventEmitter = require('events').EventEmitter;
var FreeList = require('freelist').FreeList;
var HTTPParser = process.binding('http_parser').HTTPParser;
-var assert = process.assert;
+var assert = require('assert').ok;
var debug;
var Script = process.binding('evals').Script;
var runInThisContext = Script.runInThisContext;
var runInNewContext = Script.runInNewContext;
-var assert = process.assert;
+var assert = require('assert').ok;
function Module(id, parent) {
this.id = id;
var IOWatcher = process.binding('io_watcher').IOWatcher;
var constants = process.binding('constants');
-var assert = process.assert;
+var assert = require('assert').ok;
var socket = binding.socket;
var bind = binding.bind;
var Timer = process.binding('timer').Timer;
var L = require('_linklist');
-var assert = process.assert;
+var assert = require('assert').ok;
var debug;
if (process.env.NODE_debug && /timer/.test(process.env.NODE_debug)) {
var events = require('events');
var stream = require('stream');
-var assert = process.assert;
+var assert = require('assert').ok;
var debug;
if (process.env.NODE_DEBUG && /tls/.test(process.env.NODE_DEBUG)) {
};
startup._removedProcessMethods = {
+ 'assert': 'process.assert() use require("assert").ok() instead',
'debug': 'process.debug() use console.error() instead',
'error': 'process.error() use console.error() instead',
'watchFile': 'process.watchFile() has moved to fs.watchFile()',