From 6967ebcc8c6efb8528bac8028ccf20b75ea3ab9a Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 10 Mar 2016 19:12:13 +0300 Subject: [PATCH] KT-11030 Copy static properties of object's class to instance of object (think about moving local functions to member methods in objects) --- js/js.translator/testData/kotlin_lib_ecma5.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/js.translator/testData/kotlin_lib_ecma5.js b/js/js.translator/testData/kotlin_lib_ecma5.js index 57807ddc017..80813e663da 100644 --- a/js/js.translator/testData/kotlin_lib_ecma5.js +++ b/js/js.translator/testData/kotlin_lib_ecma5.js @@ -311,6 +311,7 @@ var Kotlin = {}; metadata.type = Kotlin.TYPE.OBJECT; Object.defineProperty(this, $o.className, {value: obj}); defineNestedTypes(obj, klass.$metadata$.types); + copyProperties(obj, metadata.staticMembers); if (metadata.baseClass != null) { constructor.baseInitializer = metadata.baseClass; }