Skip to content

Commit a1c46db

Browse files
committed
use primordial
1 parent 15f309c commit a1c46db

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/test_runner/reporter

1 file changed

+2
-2
lines changed

lib/internal/test_runner/reporter/spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
ArrayPrototypePush,
66
ArrayPrototypeShift,
77
ArrayPrototypeUnshift,
8-
Date,
8+
DatePrototypeToLocaleString,
99
} = primordials;
1010
const assert = require('assert');
1111
const Transform = require('internal/streams/transform');
@@ -109,7 +109,7 @@ class SpecReporter extends Transform {
109109
}
110110
break;
111111
case 'test:watch:restarted':
112-
return `\nRestarted at ${new Date().toLocaleTimeString()}\n`;
112+
return `\nRestarted at ${DatePrototypeToLocaleString(new Date())}\n`;
113113
}
114114
}
115115
_transform({ type, data }, encoding, callback) {

0 commit comments

Comments
 (0)