Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #288 from asutherland/fix-bare

Bug 978005 - [email] Fix usage of Bareword DOM constructors TextDecoder and TextEncoder. r=asuth
  • Loading branch information...
commit 5fa37363f043c348c65b3437f2f3cb041a12aab1 2 parents 10f1c90 + 51c5a05
@asutherland asutherland authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 data/lib/node-buffer.js
  2. +1 −1  deps/activesync
View
4 data/lib/node-buffer.js
@@ -103,7 +103,7 @@ function encode(string, encoding) {
default:
if (!encoding)
encoding = 'utf-8';
- return TextEncoder(encoding, ENCODER_OPTIONS).encode(string);
+ return new TextEncoder(encoding, ENCODER_OPTIONS).encode(string);
}
}
@@ -152,7 +152,7 @@ function decode(view, encoding) {
default:
if (!encoding)
encoding = 'utf-8';
- return TextDecoder(encoding, ENCODER_OPTIONS).decode(view);
+ return new TextDecoder(encoding, ENCODER_OPTIONS).decode(view);
}
}
2  deps/activesync
@@ -1 +1 @@
-Subproject commit 9935a8373b3d28d66567597d75427949bac1c8fc
+Subproject commit 04756d034da22fb8ba494f2577361e6963773f85
Please sign in to comment.
Something went wrong with that request. Please try again.