From c9cbff620d7a914b930b7edbf16c41e2330afb96 Mon Sep 17 00:00:00 2001 From: XmiliaH Date: Wed, 20 Oct 2021 12:57:07 +0200 Subject: [PATCH] Add missed bigint --- lib/contextify.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/contextify.js b/lib/contextify.js index 5535406..d6ba2f2 100644 --- a/lib/contextify.js +++ b/lib/contextify.js @@ -564,6 +564,7 @@ Decontextify.value = (value, traps, deepTraps, flags, mock) => { case 'number': case 'boolean': case 'symbol': + case 'bigint': return value; default: // new, unknown types can be dangerous @@ -955,6 +956,7 @@ Contextify.value = (value, traps, deepTraps, flags, mock) => { case 'number': case 'boolean': case 'symbol': + case 'bigint': return value; default: // new, unknown types can be dangerous