Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 9b0a76cc0e192bc2f3b733c89e183dac7debe6ee..6b0aa2058841ce49215fcc1cb51013cc10227a10 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1513,7 +1513,7 @@ function SetUpBoolean () { |
%CheckIsBootstrapping(); |
%SetCode($Boolean, BooleanConstructor); |
- %FunctionSetPrototype($Boolean, new $Object()); |
+ %FunctionSetPrototype($Boolean, new $Boolean(false)); |
%AddNamedProperty($Boolean.prototype, "constructor", $Boolean, DONT_ENUM); |
InstallFunctions($Boolean.prototype, DONT_ENUM, [ |
@@ -1692,7 +1692,7 @@ function SetUpNumber() { |
%CheckIsBootstrapping(); |
%SetCode($Number, NumberConstructor); |
- %FunctionSetPrototype($Number, new $Object()); |
+ %FunctionSetPrototype($Number, new $Number(0)); |
%OptimizeObjectForAddingMultipleProperties($Number.prototype, 8); |
// Set up the constructor property on the Number prototype object. |