Skip to content

Commit 46c4e53

Browse files
Miantangmapleeit
authored andcommitted
fix: console.hack origin parameter passed in error
1 parent 58ac017 commit 46c4e53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/core/runtime/console.hack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const consoleHack = (): void => {
2929
...optionalParams: any[]
3030
): void => {
3131
if (getCurrentContext() === null) {
32-
return console.originDebug(message, optionalParams);
32+
return console.originDebug(message, ...optionalParams);
3333
}
3434

3535
return logger.writeLog(
@@ -88,7 +88,7 @@ export const consoleHack = (): void => {
8888
...optionalParams: any[]
8989
): void => {
9090
if (getCurrentContext() === null) {
91-
return console.originWarn(message, optionalParams);
91+
return console.originWarn(message, ...optionalParams);
9292
}
9393

9494
return logger.writeLog(
@@ -102,7 +102,7 @@ export const consoleHack = (): void => {
102102
...optionalParams: any[]
103103
): void => {
104104
if (getCurrentContext() === null) {
105-
return console.originError(message, optionalParams);
105+
return console.originError(message, ...optionalParams);
106106
}
107107

108108
return logger.writeLog(

0 commit comments

Comments
 (0)