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. |