summaryrefslogtreecommitdiff
path: root/src/string_bytes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_bytes.cc')
-rw-r--r--src/string_bytes.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/string_bytes.cc b/src/string_bytes.cc
index 5aa3b8ca77..9df42f3bfa 100644
--- a/src/string_bytes.cc
+++ b/src/string_bytes.cc
@@ -686,7 +686,6 @@ MaybeLocal<Value> StringBytes::Encode(Isolate* isolate,
CHECK_NE(encoding, UCS2);
CHECK_BUFLEN_IN_RANGE(buflen);
- *error = Local<Value>();
if (!buflen && encoding != BUFFER) {
return String::Empty(isolate);
}
@@ -772,7 +771,6 @@ MaybeLocal<Value> StringBytes::Encode(Isolate* isolate,
size_t buflen,
Local<Value>* error) {
CHECK_BUFLEN_IN_RANGE(buflen);
- *error = Local<Value>();
// Node's "ucs2" encoding expects LE character data inside a
// Buffer, so we need to reorder on BE platforms. See