Fix compilation issues with strictBindCallApply. With strictBindCallApply, TS complains that the unknown[] is incompatible with the [any?, ...any] array expected by .error. The workaround is to just switch to `.call` with splat. PiperOrigin-RevId: 285190781
diff --git a/internal/tsc_wrapped/worker.ts b/internal/tsc_wrapped/worker.ts index 0bdb04c..f6bc505 100644 --- a/internal/tsc_wrapped/worker.ts +++ b/internal/tsc_wrapped/worker.ts
@@ -19,7 +19,7 @@ /** Maybe print a debug message (depending on a flag defaulting to false). */ export function debug(...args: Array<unknown>) { - if (DEBUG) console.error.apply(console, args); + if (DEBUG) console.error.call(console, ...args); } /** @@ -27,7 +27,7 @@ * the end user. */ export function log(...args: Array<unknown>) { - console.error.apply(console, args); + console.error.call(console, ...args); } /**