File tree 2 files changed +6
-2
lines changed
overrides-2.10/scala/collection/mutable
overrides-2.11/scala/collection/mutable 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ package mutable
13
13
14
14
import generic ._
15
15
16
+ import scala .scalajs .js
17
+
16
18
/** Buffers are used to create sequences of elements incrementally by
17
19
* appending, prepending, or inserting new elements. It is also
18
20
* possible to access and modify elements in a random access fashion
@@ -41,7 +43,7 @@ trait Buffer[A] extends Seq[A]
41
43
*/
42
44
object Buffer extends SeqFactory [Buffer ] {
43
45
implicit def canBuildFrom [A ]: CanBuildFrom [Coll , A , Buffer [A ]] = ReusableCBF .asInstanceOf [GenericCanBuildFrom [A ]]
44
- def newBuilder [A ]: Builder [A , Buffer [A ]] = new ArrayBuffer
46
+ def newBuilder [A ]: Builder [A , Buffer [A ]] = new js. WrappedArray
45
47
}
46
48
47
49
/** Explicit instantiation of the `Buffer` trait to reduce class file size in subclasses. */
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ package mutable
14
14
15
15
import generic ._
16
16
17
+ import scala .scalajs .js
18
+
17
19
/** Buffers are used to create sequences of elements incrementally by
18
20
* appending, prepending, or inserting new elements. It is also
19
21
* possible to access and modify elements in a random access fashion
@@ -42,7 +44,7 @@ trait Buffer[A] extends Seq[A]
42
44
*/
43
45
object Buffer extends SeqFactory [Buffer ] {
44
46
implicit def canBuildFrom [A ]: CanBuildFrom [Coll , A , Buffer [A ]] = ReusableCBF .asInstanceOf [GenericCanBuildFrom [A ]]
45
- def newBuilder [A ]: Builder [A , Buffer [A ]] = new ArrayBuffer
47
+ def newBuilder[A ]: Builder [A , Buffer [A ]] = new js. WrappedArray
46
48
}
47
49
48
50
/** Explicit instantiation of the `Buffer` trait to reduce class file size in subclasses. */
You can’t perform that action at this time.
0 commit comments