29
29
// Keep reference to original values of some global properties. This
30
30
// has the added benefit that the code in this file is isolated from
31
31
// changes to these properties.
36
35
// Instance class name can only be set on functions. That is the only
37
36
// purpose for MathConstructor.
38
37
function MathConstructor() {}
39
38
%FunctionSetInstanceClassName(MathConstructor, 'Math');
41
40
$Math.__proto__ = $Object.prototype;
42
41
%SetProperty(global, "Math", $Math, DONT_ENUM);