From 575ea5cc1e057569605bb86248a9e85a4bf295bf Mon Sep 17 00:00:00 2001 From: Gil Pedersen Date: Fri, 1 Jun 2018 17:04:42 +0200 Subject: [PATCH] Add BigInt globals These have just been added to node master, and should end up in the 10 branch as well. --- lib/leaks.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/leaks.js b/lib/leaks.js index 414c19ab..12a815eb 100755 --- a/lib/leaks.js +++ b/lib/leaks.js @@ -133,6 +133,14 @@ exports.detect = function (customGlobals) { } // $lab:coverage:on$ + // $lab:coverage:off$ + if (global.BigInt) { + whitelist.BigInt = true; + whitelist.BigUint64Array = true; + whitelist.BigInt64Array = true; + } + // $lab:coverage:on$ + if (global.DTRACE_HTTP_SERVER_RESPONSE) { whitelist.DTRACE_HTTP_SERVER_RESPONSE = true; whitelist.DTRACE_HTTP_SERVER_REQUEST = true;