Changeset 4193 for lang/javascript/jsruby
- Timestamp:
- 01/08/08 01:40:45 (5 years ago)
- Files:
-
- 1 modified
-
lang/javascript/jsruby/trunk/src/interpreter.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/jsruby/trunk/src/interpreter.js
r4176 r4193 7 7 RubyEngine.Scope.prototype.popLevel = function(){ this.level.pop(); } 8 8 RubyEngine.Scope.prototype.clear = function(){ 9 this.level = [{}] 10 this.stack = [] 11 this.global = { "$window": new RubyEngine.RubyObject.JSObject(window), "$document": new RubyEngine.RubyObject.JSObject(document) } 9 this.level = [{}]; 10 this.stack = []; 11 this.global = {}; 12 if (typeof(window)!='undefined') this.global={"$window": new RubyEngine.RubyObject.JSObject(window), "$document": new RubyEngine.RubyObject.JSObject(document) }; 12 13 for(var i in RubyEngine.Interpreter.KernelMethod) { 13 14 if (i.match(/^[a-z_\*]/)) this.global[i] = RubyEngine.Interpreter.KernelMethod[i];
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)