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); }
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; }