From 73e3a252d3ecc093097e4de495dce1755688370b Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Sun, 22 Nov 2015 20:19:12 +0300 Subject: [PATCH] JS: ArrayList.addAll must return Boolean #KT-7809 --- js/js.translator/testData/kotlin_lib.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/js.translator/testData/kotlin_lib.js b/js/js.translator/testData/kotlin_lib.js index 54bb5e917a1..bc87a6b8f54 100644 --- a/js/js.translator/testData/kotlin_lib.js +++ b/js/js.translator/testData/kotlin_lib.js @@ -594,10 +594,14 @@ this.array.splice(index, 0, element); }, addAll_4fm7v2$: function (collection) { + if (collection.size == 0) { + return false; + } var it = collection.iterator(); for (var i = this.array.length, n = collection.size; n-- > 0;) { this.array[i++] = it.next(); } + return true; }, removeAt_za3lpa$: function (index) { this.checkRange(index);