From: Jackson Tian Date: Thu, 16 Apr 2015 05:44:17 +0000 (+0800) Subject: src: remove duplicate byteLength from Buffer X-Git-Tag: v1.8.1~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62f5f4cec942864d1cd21ef31bf650ddca874093;p=platform%2Fupstream%2Fnodejs.git src: remove duplicate byteLength from Buffer Commit 36a77956 introduced a duplicate Buffer byteLength property. PR-URL: https://github.com/iojs/io.js/pull/1438 Reviewed-By: Colin Ihrig Reviewed-By: Johan Bergström --- diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 7e2096e..61b80c6 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -746,7 +746,6 @@ void Initialize(Handle target, env->SetMethod(target, "setupBufferJS", SetupBufferJS); env->SetMethod(target, "byteLength", ByteLength); - env->SetMethod(target, "byteLength", ByteLength); env->SetMethod(target, "compare", Compare); env->SetMethod(target, "fill", Fill); env->SetMethod(target, "indexOfBuffer", IndexOfBuffer);