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