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)
This commit is contained in:
develar
2013-08-08 21:28:41 +04:00
committed by Zalim Bashorov
parent bc4e0e212a
commit 786652940d
@@ -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;
}