Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

support for colored output in strict mode #70

Closed
wants to merge 1 commit into from

3 participants

@jsen-

in strict mode, altering named parameter of a function does not update the arguments quasi-array, this PR fixes the issue, that no colors, nor debug name and time difference is shown in strict mode

@Volox

+1

@TooTallNate TooTallNate closed this pull request from a commit
@TooTallNate TooTallNate node: fix colors in strict mode
Before the `fmt` variable was not being updated.

Closes #70.
007123f
@TooTallNate
Owner

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 7, 2013
  1. @jsen-
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/debug.js
View
2  lib/debug.js
@@ -114,7 +114,7 @@ function debug(name) {
var ms = curr - (prev[name] || curr);
prev[name] = curr;
- fmt = ' \u001b[9' + c + 'm' + name + ' '
+ arguments[0] = ' \u001b[9' + c + 'm' + name + ' '
+ '\u001b[3' + c + 'm\u001b[90m'
+ fmt + '\u001b[3' + c + 'm'
+ ' +' + humanize(ms) + '\u001b[0m';
Something went wrong with that request. Please try again.