Skip to content

Commit

Permalink
Merge pull request #833 from MarkTiedemann/add-text-encoding-globals
Browse files Browse the repository at this point in the history
Add WHATWG Encoding API globals
  • Loading branch information
geek authored May 13, 2018
2 parents 850354a + b9d1a92 commit 3e4a37f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/leaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3e4a37f

Please sign in to comment.