Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index be9b297f81315acf7f46ea6f117c518b6ea74cc9..7242506720719e475eaef8983febce2cdc2ee9c9 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -162,13 +162,14 @@ function GlobalEval(x) { |
function SetupGlobal() { |
// 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); |
// Setup non-enumerable function on the global object. |
InstallFunctions(global, DONT_ENUM, $Array( |