File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ private[streams] trait ScalaJsSymbols
8
8
private [streams] lazy val JsArraySymOpt =
9
9
scalaJsStaticClass(" scala.scalajs.js.Array" )
10
10
11
+ private [streams] lazy val JsWrappedArraySymOpt =
12
+ scalaJsStaticClass(" scala.scalajs.js.WrappedArray" )
13
+
11
14
private [streams] lazy val JsArrayOpsSymOpt =
12
15
scalaJsStaticClass(" scala.scalajs.js.ArrayOps" )
13
16
Original file line number Diff line number Diff line change @@ -35,9 +35,11 @@ private[streams] trait JsArrayBuilderSinks
35
35
val Block (List (
36
36
arrayDecl,
37
37
append), arrayRef) = typed(q """
38
- private[this] var $array = new ${JsArraySymOpt .get}[ $componentTpe]();
38
+ private[this] var $array = new ${JsWrappedArraySymOpt .get}[ $componentTpe](
39
+ new ${JsArraySymOpt .get}[ $componentTpe]()
40
+ );
39
41
$array.append( ${input.vars.alias.get});
40
- $array
42
+ $array.array
41
43
""" )
42
44
43
45
StreamOutput (
You can’t perform that action at this time.
0 commit comments