Skip to content
Permalink
Browse files

util: fix permanent deoptimizations

PR-URL: #12456
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
mscdex committed Apr 24, 2017
1 parent 8491c70 commit d5925af8d7e8d689603208094a85972aacc53f49
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/internal/util.js
  2. +1 −1 lib/util.js
@@ -162,7 +162,7 @@ function getSignalsToNamesMapping() {
return signalsToNamesMapping;

signalsToNamesMapping = Object.create(null);
for (const key in signals) {
for (var key in signals) {
signalsToNamesMapping[signals[key]] = key;
}

@@ -669,7 +669,7 @@ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
}
visibleLength++;
}
const remaining = value.length - index;
var remaining = value.length - index;
if (remaining > 0) {
output.push(`... ${remaining} more item${remaining > 1 ? 's' : ''}`);
}

0 comments on commit d5925af

Please sign in to comment.
You can’t perform that action at this time.