summaryrefslogtreecommitdiff
path: root/devtools/client/shared/components/reps/rep.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/shared/components/reps/rep.js')
-rw-r--r--devtools/client/shared/components/reps/rep.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/devtools/client/shared/components/reps/rep.js b/devtools/client/shared/components/reps/rep.js
index 80d25b69e4..93a2bf3d7c 100644
--- a/devtools/client/shared/components/reps/rep.js
+++ b/devtools/client/shared/components/reps/rep.js
@@ -26,6 +26,7 @@ define(function (require, exports, module) {
// DOM types (grips)
const { Attribute } = require("./attribute");
+ const { BigInt } = require("./big-int");
const { DateTime } = require("./date-time");
const { Document } = require("./document");
const { Event } = require("./event");
@@ -70,6 +71,7 @@ define(function (require, exports, module) {
Null,
StringRep,
Number,
+ BigInt,
SymbolRep,
InfinityRep,
NaNRep,
@@ -111,10 +113,12 @@ define(function (require, exports, module) {
*/
function getRep(object, defaultRep = Obj) {
let type = typeof object;
- if (type == "object" && object instanceof String) {
- type = "string";
- } else if (object && type == "object" && object.type) {
- type = object.type;
+ if (type == "object") {
+ if (object instanceof String) {
+ type = "string";
+ } else if (["symbol", "BigInt"].includes(object.type)) {
+ type = object.type;
+ }
}
if (isGrip(object)) {