Commit 1b4cb57c authored by lrn@chromium.org's avatar lrn@chromium.org

Cleanup of messages.js.

Lock down some otherwise modifiable objects that don't need it.

Review URL: http://codereview.chromium.org/7828003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9089 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d586e9c5
...@@ -38,7 +38,7 @@ const $abs = MathAbs; ...@@ -38,7 +38,7 @@ const $abs = MathAbs;
function MathConstructor() {} function MathConstructor() {}
%FunctionSetInstanceClassName(MathConstructor, 'Math'); %FunctionSetInstanceClassName(MathConstructor, 'Math');
const $Math = new MathConstructor(); const $Math = new MathConstructor();
$Math.__proto__ = global.Object.prototype; $Math.__proto__ = $Object.prototype;
%SetProperty(global, "Math", $Math, DONT_ENUM); %SetProperty(global, "Math", $Math, DONT_ENUM);
// ECMA 262 - 15.8.2.1 // ECMA 262 - 15.8.2.1
......
This diff is collapsed.
...@@ -48,6 +48,7 @@ const $Number = global.Number; ...@@ -48,6 +48,7 @@ const $Number = global.Number;
const $Function = global.Function; const $Function = global.Function;
const $Boolean = global.Boolean; const $Boolean = global.Boolean;
const $NaN = 0/0; const $NaN = 0/0;
const builtins = this;
// ECMA-262 Section 11.9.3. // ECMA-262 Section 11.9.3.
function EQUALS(y) { function EQUALS(y) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment