We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bceaaa commit 8e9f59aCopy full SHA for 8e9f59a
1 file changed
src/node.js
@@ -220,6 +220,17 @@ global.console.warn = function () {
220
221
global.console.error = global.console.warn;
222
223
+global.console.dir = function(object){
224
+ var sys = module.requireNative('sys');
225
+ process.stdout.write(sys.inspect(object) + '\n');
226
+}
227
+
228
+global.console.assert = function(expression){
229
+ if(!expression){
230
+ var arr = Array.prototype.slice.call(arguments, 1);
231
+ process.assert(false, format.apply(this, arr));
232
+ }
233
234
235
process.exit = function (code) {
236
process.emit("exit");
0 commit comments