summaryrefslogtreecommitdiff
path: root/devtools/client/webconsole
diff options
context:
space:
mode:
authorMartok <martok@martoks-place.de>2023-07-28 23:35:59 +0200
committerMartok <martok@martoks-place.de>2023-07-28 23:35:59 +0200
commitfa32034f305b18480aefded068962b2862e7ccd3 (patch)
treee2f38e55ab6cdf6239320e950e8d86deff4525d9 /devtools/client/webconsole
parent7a5b68c98ebde399166bef6fecb932760dc1006d (diff)
downloaduxp-fa32034f305b18480aefded068962b2862e7ccd3.tar.gz
Issue #2026 - Part 3b - Add BigInt Devtools support. (legacy frontend)
Diffstat (limited to 'devtools/client/webconsole')
-rw-r--r--devtools/client/webconsole/console-output.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/devtools/client/webconsole/console-output.js b/devtools/client/webconsole/console-output.js
index 649ec65ae6..8fbaec94fe 100644
--- a/devtools/client/webconsole/console-output.js
+++ b/devtools/client/webconsole/console-output.js
@@ -1293,6 +1293,7 @@ Messages.Extended.prototype = extend(Messages.Simple.prototype, {
{
let map = {
"number": "cm-number",
+ "bigint": "cm-number",
"longstring": "console-string",
"string": "console-string",
"regexp": "cm-string-2",
@@ -3365,6 +3366,15 @@ Widgets.ObjectRenderers.add({
});
/**
+ * The widget used for displaying BigInt previews.
+ */
+Widgets.ObjectRenderers.add({
+ byClass: "BigInt",
+
+ render: WrappedPrimitiveRenderer,
+});
+
+/**
* The widget used for displaying String previews.
*/
Widgets.ObjectRenderers.add({