diff --git a/bridge/polyfill/src/console.ts b/bridge/polyfill/src/console.ts index 3af936f989..a224e80282 100644 --- a/bridge/polyfill/src/console.ts +++ b/bridge/polyfill/src/console.ts @@ -206,6 +206,13 @@ export const console = { log(...args: any) { printer(logger(arguments)); }, + inspect(...args: any) { + var result = []; + for (var i = 0; i < arguments.length; i++) { + result.push(formatter(arguments[i], Number.MAX_VALUE, [])); + } + printer(result.join(SEPARATOR)); + }, info(...args: any) { printer(logger(arguments), 'info'); },