Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index a9306003b84c4aba7cb8149e49d0325153ace9a0..6106ae9146316b627cbc5f28f7a2cb561110e355 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1341,6 +1341,8 @@ utils.InstallFunctions(GlobalObject, DONT_ENUM, [ |
// Boolean |
function BooleanConstructor(x) { |
+ // TODO(bmeurer): Move this to toplevel. |
+ "use strict"; |
if (%_IsConstructCall()) { |
%_SetValueOf(this, ToBoolean(x)); |
} else { |
@@ -1390,6 +1392,8 @@ utils.InstallFunctions(GlobalBoolean.prototype, DONT_ENUM, [ |
// Number |
function NumberConstructor(x) { |
+ // TODO(bmeurer): Move this to toplevel. |
+ "use strict"; |
var value = %_ArgumentsLength() == 0 ? 0 : ToNumber(x); |
if (%_IsConstructCall()) { |
%_SetValueOf(this, value); |