Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Unified Diff: src/v8natives.js

Issue 1051373002: ES6: Number and Boolean prototype should be ordinary objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add mozilla.status exceptions Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/es6/prototype-ordinary-objects.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index df6305e74de1ef9f930f5c32f65a899dfbdb2baa..56e8c2d69d035f49da62b2b2b7d25e7355a60979 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1492,7 +1492,7 @@ function SetUpBoolean () {
%CheckIsBootstrapping();
%SetCode($Boolean, BooleanConstructor);
- %FunctionSetPrototype($Boolean, new $Boolean(false));
+ %FunctionSetPrototype($Boolean, new $Object());
%AddNamedProperty($Boolean.prototype, "constructor", $Boolean, DONT_ENUM);
InstallFunctions($Boolean.prototype, DONT_ENUM, $Array(
@@ -1671,7 +1671,7 @@ function SetUpNumber() {
%CheckIsBootstrapping();
%SetCode($Number, NumberConstructor);
- %FunctionSetPrototype($Number, new $Number(0));
+ %FunctionSetPrototype($Number, new $Object());
%OptimizeObjectForAddingMultipleProperties($Number.prototype, 8);
// Set up the constructor property on the Number prototype object.
« no previous file with comments | « no previous file | test/mjsunit/es6/prototype-ordinary-objects.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698