Skip to content

Commit 4b613d3

Browse files
committed
Use log.error instead of console.error
1 parent 4838dd3 commit 4b613d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/iroptimizer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @ts-check
22

33
const {StackOpcode, InputOpcode, InputType} = require('./enums.js');
4+
const log = require('../util/log');
45

56
// These imports are used by jsdoc comments but eslint doesn't know that
67
/* eslint-disable no-unused-vars */
@@ -647,7 +648,7 @@ class IROptimizer {
647648
do {
648649
// If we are stuck in an apparent infinite loop, give up and assume the worst.
649650
if (iterations > 10000) {
650-
console.error('analyzeLoopedStack stuck in likely infinite loop; quitting', block, state);
651+
log.error('analyzeLoopedStack stuck in likely infinite loop; quitting', block, state);
651652
modified = state.clear();
652653
block.entryState = state.clone();
653654
block.exitState = state.clone();

0 commit comments

Comments
 (0)