protected override JavaScriptObject Execute(SourcePosition pos, Scope scope, JavaScriptObject thisObject) { JavaScriptString str = scope.GetVariable("string", pos).ToJavaScriptString(); Console.Write(str.ToString()); return(null); }
protected override JavaScriptObject Execute(SourcePosition pos, Scope scope, JavaScriptObject thisObject) { JavaScriptString str = scope.GetVariable("string", pos).ToJavaScriptString(); return(new JavaScriptInteger(str.ToString().Length)); }