public void newScope() { Scriptable newScope = new NativeObject(); newScope.setPrototype(scope); newScope.setParentScope(scope); scope = newScope; }
public void newScope( ) { Scriptable newScope; try { newScope = context.newObject( scope ); scope = newScope; } catch (EvaluatorException e) { logger.error( e ); } catch (JavaScriptException e) { logger.error( e ); } }
	public void newScope()	{	    Scriptable newScope = new NativeObject();	    newScope.setPrototype(scope);	    newScope.setParentScope(scope);	    scope = newScope;	}