From fa32034f305b18480aefded068962b2862e7ccd3 Mon Sep 17 00:00:00 2001 From: Martok Date: Fri, 28 Jul 2023 23:35:59 +0200 Subject: Issue #2026 - Part 3b - Add BigInt Devtools support. (legacy frontend) --- devtools/client/webconsole/console-output.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'devtools/client/webconsole') 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", @@ -3364,6 +3365,15 @@ Widgets.ObjectRenderers.add({ render: WrappedPrimitiveRenderer, }); +/** + * The widget used for displaying BigInt previews. + */ +Widgets.ObjectRenderers.add({ + byClass: "BigInt", + + render: WrappedPrimitiveRenderer, +}); + /** * The widget used for displaying String previews. */ -- cgit v1.2.3