示例#1
0
        protected override JavaScriptObject Execute(SourcePosition pos, Scope scope, JavaScriptObject thisObject)
        {
            JavaScriptString str = scope.GetVariable("string", pos).ToJavaScriptString();

            Console.Write(str.ToString());

            return(null);
        }
示例#2
0
        protected override JavaScriptObject Execute(SourcePosition pos, Scope scope, JavaScriptObject thisObject)
        {
            JavaScriptString str = scope.GetVariable("string", pos).ToJavaScriptString();

            return(new JavaScriptInteger(str.ToString().Length));
        }