Skip to content

Commit

Permalink
Add WHATWG Encoding API globals
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkTiedemann committed May 13, 2018
1 parent 850354a commit b9d1a92
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 b9d1a92

Please sign in to comment.