summaryrefslogtreecommitdiff
path: root/ext/console/02_console.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/console/02_console.js')
-rw-r--r--ext/console/02_console.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/console/02_console.js b/ext/console/02_console.js
index 7554a88fc..9a9ead5a1 100644
--- a/ext/console/02_console.js
+++ b/ext/console/02_console.js
@@ -2239,6 +2239,12 @@
this.error(err.stack);
};
+ // These methods are noops, but when the inspector is connected, they
+ // call into V8.
+ profile = (_label) => {};
+ profileEnd = (_label) => {};
+ timeStamp = (_label) => {};
+
static [SymbolHasInstance](instance) {
return instance[isConsoleInstance];
}
@@ -2332,6 +2338,9 @@
consoleFromV8[key],
consoleFromDeno[key],
);
+ } else {
+ // Add additional console APIs from the inspector
+ consoleFromDeno[key] = consoleFromV8[key];
}
}
}