From 1842d305678611edec7861d54691aef285b1dc37 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Fri, 20 Jun 2014 22:42:08 +0400 Subject: [PATCH] Implement equals for NumberRange in JavaScript. --- js/js.translator/testData/kotlin_lib.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/js.translator/testData/kotlin_lib.js b/js/js.translator/testData/kotlin_lib.js index 0e9d42c1081..acfac5fbfb2 100644 --- a/js/js.translator/testData/kotlin_lib.js +++ b/js/js.translator/testData/kotlin_lib.js @@ -546,6 +546,11 @@ }, isEmpty: function () { return this.start > this.end; + }, + equals_za3rmp$: function(other) { + if (other == null) + return false; + return this.start === other.start && this.end === other.end && this.increment === other.increment; } });