Browse Source

use (non-writable if supported) property, not getter

Getter was too smart :-/ for IE8.
Herbert Vojčík 10 years ago
parent
commit
59ff2bb0ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      support/helpers.js

+ 2 - 2
support/helpers.js

@@ -5,8 +5,8 @@ define("amber/helpers", ["amber_vm/smalltalk", "require"], function (smalltalk,
         }
     };
     Object.defineProperty(exports, "smalltalk", {
-        get: function () { return smalltalk; },
-        enumerable: true, configurable: true
+        value: smalltalk,
+        enumerable: true, configurable: true, writable: false
     });
     return  exports;
 });