Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
streams1 js
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 25, 2013
1 parent 83154aa commit 6a576d2
Show file tree
Hide file tree
Showing 27 changed files with 1,521 additions and 1,439 deletions.
2 changes: 1 addition & 1 deletion lib/_debugger.js
Expand Up @@ -36,7 +36,7 @@ exports.start = function(argv, stdin, stdout) {
}

// Setup input/output streams
stdin = stdin || process.stdin;
stdin = stdin || process.openStdin();
stdout = stdout || process.stdout;

var args = ['--debug-brk'].concat(argv),
Expand Down
2 changes: 1 addition & 1 deletion lib/assert.js
Expand Up @@ -277,7 +277,7 @@ function expectedException(actual, expected) {
return false;
}

if (Object.prototype.toString.call(expected) == '[object RegExp]') {
if (expected instanceof RegExp) {
return expected.test(actual);
} else if (actual instanceof expected) {
return true;
Expand Down

0 comments on commit 6a576d2

Please sign in to comment.