Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 1616ac366b0e470a07de5884687b22fb9ee81016..8af02ce88167add9c3b0e19712d560c84f1dc7b6 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -193,13 +193,14 @@ function GlobalEval(x) { |
function SetUpGlobal() { |
%CheckIsBootstrapping(); |
// ECMA 262 - 15.1.1.1. |
- %SetProperty(global, "NaN", $NaN, DONT_ENUM | DONT_DELETE); |
+ %SetProperty(global, "NaN", $NaN, DONT_ENUM | DONT_DELETE | READ_ONLY); |
// ECMA-262 - 15.1.1.2. |
- %SetProperty(global, "Infinity", 1/0, DONT_ENUM | DONT_DELETE); |
+ %SetProperty(global, "Infinity", 1/0, DONT_ENUM | DONT_DELETE | READ_ONLY); |
// ECMA-262 - 15.1.1.3. |
- %SetProperty(global, "undefined", void 0, DONT_ENUM | DONT_DELETE); |
+ %SetProperty(global, "undefined", void 0, |
+ DONT_ENUM | DONT_DELETE | READ_ONLY); |
// Set up non-enumerable function on the global object. |
InstallFunctions(global, DONT_ENUM, $Array( |