예제 #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);
        }
예제 #2
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;
 }