From 786652940d0e3fff824b28b825ce72f9ed69468d Mon Sep 17 00:00:00 2001 From: develar Date: Thu, 8 Aug 2013 21:28:41 +0400 Subject: [PATCH] JS backend: use javascript Object as base class for object by default (when there are not any parents). It's workaround for compatibility with Google Chrome Extension API because sometimes they calls Object.prototype methods. (cherry picked from commit 9959a1e) --- js/js.translator/testFiles/kotlin_lib_ecma5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/js.translator/testFiles/kotlin_lib_ecma5.js b/js/js.translator/testFiles/kotlin_lib_ecma5.js index f4e5033fe26..4b46588641e 100644 --- a/js/js.translator/testFiles/kotlin_lib_ecma5.js +++ b/js/js.translator/testFiles/kotlin_lib_ecma5.js @@ -72,7 +72,7 @@ var Kotlin = Object.create(null); function computeProto2(bases, properties) { if (bases === null) { - return null; + return Object.prototype; } return Array.isArray(bases) ? computeProto(bases, properties) : bases.proto; }