Exemple #1
0
        internal JSContext CreateCatchScope(JSRuntimeException ex, string varname)
        {
            JSContext ctx = new JSContext(this);
            JSEnvRec  r   = new JSDeclScope(this.LexicalEnv);

            r.CreateMutableBinding(varname);
            r.SetMutableBinding(varname, ex.value);
            ctx.LexicalEnv = r;
            return(ctx);
        }
Exemple #2
0
        internal bool HandleError(int line, JSRuntimeException ex)
        {
            DebugWrapper Debugger = this.Debugger;

            if (ex.Line == -1)
            {
                ex.Line = line;
            }
            if (Debugger == null)
            {
                return(false);
            }
            return(Debugger.HandleError(line, ex));
        }
 internal bool HandleError(int line, JSRuntimeException ex)
 {
     this.BreakLine = line;
     lock (this._sync)
     {
         this.Error = ex;
         this.state = State.Paused;
         Monitor.Pulse(this._sync);
         Monitor.Wait(this._sync);
     }
     if (this.state == State.Running)
     {
         return(true);
     }
     this.state = State.Failed;
     throw new _ExWrapper(ex);
 }
 public _ExWrapper(JSRuntimeException ex) : base("", ex)
 {
 }
Exemple #5
0
 internal bool HandleError(int line, JSRuntimeException ex)
 {
     DebugWrapper Debugger = this.Debugger;
     if (ex.Line == -1)
     {
         ex.Line = line;
     }
     if (Debugger == null)
     {
         return false;
     }
     return Debugger.HandleError(line, ex);
 }
Exemple #6
0
 internal JSContext CreateCatchScope(JSRuntimeException ex, string varname)
 {
     JSContext ctx = new JSContext(this);
     JSEnvRec r = new JSDeclScope(this.LexicalEnv);
     r.CreateMutableBinding(varname);
     r.SetMutableBinding(varname, ex.value);
     ctx.LexicalEnv = r;
     return ctx;
 }
 public _ExWrapper(JSRuntimeException ex)
     : base("", ex)
 {
 }
 internal bool HandleError(int line, JSRuntimeException ex)
 {
     this.BreakLine = line;
     lock (this._sync)
     {
         this.Error = ex;
         this.state = State.Paused;
         Monitor.Pulse(this._sync);
         Monitor.Wait(this._sync);
     }
     if (this.state == State.Running)
     {
         return true;
     }
     this.state = State.Failed;
     throw new _ExWrapper(ex);
 }