Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 8a2f252

Browse files
authored
Merge pull request #169 from exoego/buffer-mistyping
Buffer instance does not have kMaxLength actually
2 parents 9fcd222 + 90628cd commit 8a2f252

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

app/current/src/main/scala/io/scalajs/nodejs/buffer/Buffer.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,6 @@ class Buffer private[this] () extends Uint8Array( /* dummy to trick constructor
141141
*/
142142
def keys(): js.Iterator[Int] = js.native
143143

144-
/**
145-
* The largest size allowed for a single Buffer instance.
146-
* On 32-bit architectures, this value is (2^30)-1 (~1GB). On 64-bit architectures, this value is (2^31)-1 (~2GB).
147-
* Note that this is a property on the buffer module returned by require('buffer'), not on the Buffer global or
148-
* a Buffer instance.
149-
* @return the largest size allowed
150-
*/
151-
def kMaxLength: Int = js.native
152-
153144
/**
154145
* Identical to buf.indexOf(), except buf is searched from back to front instead of front to back.
155146
* @param value What to search for

app/current/src/main/scala/io/scalajs/nodejs/buffer/package.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ package object buffer {
109109
*
110110
* On 32-bit architectures, this value is `(2^30)-1` (~1GB).
111111
* On 64-bit architectures, this value is `(2^31)-1` (~2GB).
112-
*
113-
* This value is also available as [[Buffer.kMaxLength]].
114112
*/
115113
val MAX_LENGTH: Int = js.native
116114

0 commit comments

Comments
 (0)