diff --git a/lib/leaks.js b/lib/leaks.js index 2f219501..414c19ab 100755 --- a/lib/leaks.js +++ b/lib/leaks.js @@ -121,6 +121,18 @@ exports.detect = function (customGlobals) { } // $lab:coverage:on$ + // $lab:coverage:off$ + if (global.TextEncoder) { + whitelist.TextEncoder = true; + } + // $lab:coverage:on$ + + // $lab:coverage:off$ + if (global.TextDecoder) { + whitelist.TextDecoder = true; + } + // $lab:coverage:on$ + if (global.DTRACE_HTTP_SERVER_RESPONSE) { whitelist.DTRACE_HTTP_SERVER_RESPONSE = true; whitelist.DTRACE_HTTP_SERVER_REQUEST = true;