Index: src/apinatives.js |
diff --git a/src/apinatives.js b/src/apinatives.js |
index 79b41dd88c28f5284c9df9cf463a05b41aa6e4f7..ad1d869415c18ef03e0d389851583eb17e4764e5 100644 |
--- a/src/apinatives.js |
+++ b/src/apinatives.js |
@@ -90,7 +90,7 @@ function InstantiateFunction(data, name) { |
// internal ToBoolean doesn't handle that! |
if (!(typeof parent === 'undefined')) { |
var parent_fun = Instantiate(parent); |
- fun.prototype.__proto__ = parent_fun.prototype; |
+ %SetPrototype(fun.prototype, parent_fun.prototype); |
} |
ConfigureTemplateInstance(fun, data); |
} catch (e) { |