Index: src/math.js |
diff --git a/src/math.js b/src/math.js |
index 46863284f08b1b888400c2065a97b9cd6a2aaa75..0e025410254f9ca48f59c79b515fea6d1d1e1c67 100644 |
--- a/src/math.js |
+++ b/src/math.js |
@@ -37,7 +37,7 @@ var $abs = MathAbs; |
function MathConstructor() {} |
%FunctionSetInstanceClassName(MathConstructor, 'Math'); |
var $Math = new MathConstructor(); |
-$Math.__proto__ = $Object.prototype; |
+%SetPrototype($Math, $Object.prototype); |
%SetProperty(global, "Math", $Math, DONT_ENUM); |
// ECMA 262 - 15.8.2.1 |