<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Jint - Javascript Interpreter for .NET</title><link>http://jint.codeplex.com/project/feeds/rss</link><description>Jint is a script engine based on the Javascript language. Using Jint, developers can provide fully scriptable applications, execute .NET code without compiling, or create external configuration logic, using the most used script language.</description><item><title>Commented Unassigned: Incorrect ANTLR runtime version [6980]</title><link>http://jint.codeplex.com/workitem/6980</link><description>The Antlr3.Runtime.dll that is currently used requires .NET 3.5. However, Jint itself does not require .NET 3.5 and works OK with .NET 2.0. An Antlr3.Runtime.dll that works OK with .NET 2.0 can be downloaded from http&amp;#58;&amp;#47;&amp;#47;www.antlr.org&amp;#47;wiki&amp;#47;display&amp;#47;ANTLR3&amp;#47;Antlr3CSharpReleases &amp;#40;the &amp;#91;antlr-dotnet-csharpruntime-3.5.0.2.7z&amp;#93;&amp;#40;http&amp;#58;&amp;#47;&amp;#47;www.tunnelvisionlabs.com&amp;#47;downloads&amp;#47;antlr&amp;#47;antlr-dotnet-csharpruntime-3.5.0.2.7z&amp;#41; file&amp;#41;. I&amp;#39;ve tested with this and all tests pass using this version.&lt;br /&gt;Comments: An 2.0 compatible Jint version would be great.</description><author>TheRandomGuy</author><pubDate>Sat, 18 May 2013 22:08:11 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Incorrect ANTLR runtime version [6980] 20130518100811P</guid></item><item><title>New Post: Include Javascript Files in a script</title><link>http://jint.codeplex.com/discussions/442771</link><description>&lt;div style="line-height: normal;"&gt;Is there already a command in that allows me to include code stored in separate js files? In good old php times we used for example require('demo') to include the module demo.php. Something like this I would also need here so that we can make our js modular.&lt;br /&gt;
&lt;/div&gt;</description><author>toolsfactory</author><pubDate>Tue, 07 May 2013 07:08:16 GMT</pubDate><guid isPermaLink="false">New Post: Include Javascript Files in a script 20130507070816A</guid></item><item><title>New Post: Accessing current script line number from external functions</title><link>http://jint.codeplex.com/discussions/442770</link><description>&lt;div style="line-height: normal;"&gt;Does anyone have an idea how the following scenario could be implemented:&lt;br /&gt;
&lt;br /&gt;
whenever an external function (registered using SetFunction(&amp;quot;Name&amp;quot;, new Action&amp;lt;object&amp;gt;...)) I would like to allow the called function to write a log entry including the current  line number.&lt;br /&gt;
One way to do this would be running the script in debug mode all the time and manually storing the current line from the OnStep event. But that's eating up performance. So ideally there would be something like a context that I can pass to the external function that holds all the current engine states including the SourceCodeDescriptor structure.&lt;br /&gt;
&lt;br /&gt;
Any ideas welcome&lt;br /&gt;
&lt;/div&gt;</description><author>toolsfactory</author><pubDate>Tue, 07 May 2013 07:04:45 GMT</pubDate><guid isPermaLink="false">New Post: Accessing current script line number from external functions 20130507070445A</guid></item><item><title>Edited Unassigned: Dust.js with Jint raises JintException: Function expected [6981]</title><link>http://jint.codeplex.com/workitem/6981</link><description>Hi&lt;br /&gt;I&amp;#39;m trying to run linkedin fork of Dust.js with Jint but get JintException. Code that I use works on Jurassic and Javascriptdotnet.&lt;br /&gt;dust-full-1.2.0.js is taken from https&amp;#58;&amp;#47;&amp;#47;github.com&amp;#47;linkedin&amp;#47;dustjs&amp;#47;tree&amp;#47;master&amp;#47;dist&lt;br /&gt;Exception doesn&amp;#39;t tell much about the error. Looks like it doesn&amp;#39;t see the &amp;#39;dust.compile&amp;#39; function.&lt;br /&gt;&lt;br /&gt;__Example&amp;#58;__&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;var dustFull &amp;#61; File.ReadAllText&amp;#40;&amp;#64;&amp;#34;c&amp;#58;&amp;#92;dust&amp;#92;dust-full-1.2.0.js&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;const string baseTemplates &amp;#61; &amp;#64;&amp;#34;&lt;br /&gt;&amp;#9;var email &amp;#61; &amp;#39;Hello &amp;#123;name&amp;#125;&amp;#33; You have &amp;#123;count&amp;#125; new messages.&amp;#39;&amp;#59;&lt;br /&gt;&amp;#9;var compiledEmail &amp;#61; dust.compile&amp;#40;email, &amp;#39;email&amp;#39;, true&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;dust.loadSource&amp;#40;compiledEmail&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;var data &amp;#61; &amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#39;name&amp;#39;&amp;#58; &amp;#39;Mick&amp;#39;,&lt;br /&gt;&amp;#9;&amp;#9;&amp;#39;count&amp;#39;&amp;#58; 30&lt;br /&gt;&amp;#9;&amp;#125;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;dust.render&amp;#40;&amp;#39;email&amp;#39;, data, function &amp;#40;err, out&amp;#41; &amp;#123;&amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;var context &amp;#61; new JintEngine&amp;#40;&amp;#41;&lt;br /&gt;&amp;#9;.SetDebugMode&amp;#40;true&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;context.Run&amp;#40;dustFull&amp;#41;&amp;#59;&lt;br /&gt;context.Run&amp;#40;baseTemplates&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;__Actual result&amp;#58;__&lt;br /&gt;Unhandled Exception&amp;#58; Jint.JintException&amp;#58; Function expected.&lt;br /&gt;Line&amp;#58; 3 Char&amp;#58; 4&lt;br /&gt;var compiledEmail &amp;#61; dust.compile&amp;#40;email, &amp;#39;email&amp;#39;, true&amp;#41;&lt;br /&gt; ---&amp;#62; Jint.Native.JsException&amp;#58; Exception of type &amp;#39;Jint.Native.JsException&amp;#39; was t&lt;br /&gt;hrown.&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;MethodCall methodCall&amp;#41;&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;MemberExpression expression&amp;#41;&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;VariableDeclarationStatement statement&amp;#41;&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;Program program&amp;#41;&lt;br /&gt;   at Jint.JintEngine.Run&amp;#40;Program program, Boolean unwrap&amp;#41;&lt;br /&gt;   --- End of inner exception stack trace ---&lt;br /&gt;   at Jint.JintEngine.Run&amp;#40;Program program, Boolean unwrap&amp;#41;&lt;br /&gt;   at Jint.JintEngine.Run&amp;#40;String script, Boolean unwrap&amp;#41;&lt;br /&gt;   at Jint.JintEngine.Run&amp;#40;String script&amp;#41;&lt;br /&gt;   at ConsoleApplication2.Program.RunWithJint&amp;#40;SystemConsole console, Localizatio&lt;br /&gt;nHelper sp&amp;#41; in c&amp;#58;&amp;#92;Projects&amp;#92;Tests&amp;#92;ConsoleApplication2&amp;#92;ConsoleApplication2&amp;#92;Program&lt;br /&gt;.cs&amp;#58;line 147&lt;br /&gt;   at ConsoleApplication2.Program.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in c&amp;#58;&amp;#92;Projects&amp;#92;Tests&amp;#92;Conso&lt;br /&gt;leApplication2&amp;#92;ConsoleApplication2&amp;#92;Program.cs&amp;#58;line 63&lt;br /&gt;&lt;br /&gt;</description><author>ewgenym</author><pubDate>Tue, 23 Apr 2013 09:59:16 GMT</pubDate><guid isPermaLink="false">Edited Unassigned: Dust.js with Jint raises JintException: Function expected [6981] 20130423095916A</guid></item><item><title>Created Unassigned: Dust.js with Jint raises JintException: Function expected [6981]</title><link>http://jint.codeplex.com/workitem/6981</link><description>Hi&lt;br /&gt;I&amp;#39;m trying to run linkedin fork of Dust.js with Jint but get JintException. Code that I use works on Jurassic and Javascriptdotnet.&lt;br /&gt;dust-full-1.2.0.js is taken from https&amp;#58;&amp;#47;&amp;#47;github.com&amp;#47;linkedin&amp;#47;dustjs&amp;#47;tree&amp;#47;master&amp;#47;dist&lt;br /&gt;Exception doesn&amp;#39;t tell much about the error. Looks like it doesn&amp;#39;t see the &amp;#39;dust.compile&amp;#39; function.&lt;br /&gt;&lt;br /&gt;__Example&amp;#58;__&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;var dustFull &amp;#61; File.ReadAllText&amp;#40;&amp;#64;&amp;#34;c&amp;#58;&amp;#92;dust-full-1.2.0.js&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;const string baseTemplates &amp;#61; &amp;#64;&amp;#34;&lt;br /&gt;&amp;#9;var email &amp;#61; &amp;#39;Hello &amp;#123;name&amp;#125;&amp;#33; You have &amp;#123;count&amp;#125; new messages.&amp;#39;&amp;#59;&lt;br /&gt;&amp;#9;var compiledEmail &amp;#61; dust.compile&amp;#40;email, &amp;#39;email&amp;#39;, true&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;dust.loadSource&amp;#40;compiledEmail&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;var data &amp;#61; &amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#39;name&amp;#39;&amp;#58; &amp;#39;Mick&amp;#39;,&lt;br /&gt;&amp;#9;&amp;#9;&amp;#39;count&amp;#39;&amp;#58; 30&lt;br /&gt;&amp;#9;&amp;#125;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;dust.render&amp;#40;&amp;#39;email&amp;#39;, data, function &amp;#40;err, out&amp;#41; &amp;#123;&amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;var context &amp;#61; new JintEngine&amp;#40;&amp;#41;&lt;br /&gt;&amp;#9;.SetDebugMode&amp;#40;true&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;context.Run&amp;#40;dustFull&amp;#41;&amp;#59;&lt;br /&gt;context.Run&amp;#40;baseTemplates&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;__Actual result&amp;#58;__&lt;br /&gt;Unhandled Exception&amp;#58; Jint.JintException&amp;#58; Function expected.&lt;br /&gt;Line&amp;#58; 3 Char&amp;#58; 4&lt;br /&gt;var compiledEmail &amp;#61; dust.compile&amp;#40;email, &amp;#39;email&amp;#39;, true&amp;#41;&lt;br /&gt; ---&amp;#62; Jint.Native.JsException&amp;#58; Exception of type &amp;#39;Jint.Native.JsException&amp;#39; was t&lt;br /&gt;hrown.&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;MethodCall methodCall&amp;#41;&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;MemberExpression expression&amp;#41;&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;VariableDeclarationStatement statement&amp;#41;&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;Program program&amp;#41;&lt;br /&gt;   at Jint.JintEngine.Run&amp;#40;Program program, Boolean unwrap&amp;#41;&lt;br /&gt;   --- End of inner exception stack trace ---&lt;br /&gt;   at Jint.JintEngine.Run&amp;#40;Program program, Boolean unwrap&amp;#41;&lt;br /&gt;   at Jint.JintEngine.Run&amp;#40;String script, Boolean unwrap&amp;#41;&lt;br /&gt;   at Jint.JintEngine.Run&amp;#40;String script&amp;#41;&lt;br /&gt;   at ConsoleApplication2.Program.RunWithJint&amp;#40;SystemConsole console, Localizatio&lt;br /&gt;nHelper sp&amp;#41; in c&amp;#58;&amp;#92;Projects&amp;#92;Tests&amp;#92;ConsoleApplication2&amp;#92;ConsoleApplication2&amp;#92;Program&lt;br /&gt;.cs&amp;#58;line 147&lt;br /&gt;   at ConsoleApplication2.Program.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in c&amp;#58;&amp;#92;Projects&amp;#92;Tests&amp;#92;Conso&lt;br /&gt;leApplication2&amp;#92;ConsoleApplication2&amp;#92;Program.cs&amp;#58;line 63&lt;br /&gt;&lt;br /&gt;</description><author>ewgenym</author><pubDate>Tue, 23 Apr 2013 09:58:31 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Dust.js with Jint raises JintException: Function expected [6981] 20130423095831A</guid></item><item><title>New Post: WebSocket on Jint</title><link>http://jint.codeplex.com/discussions/440758</link><description>&lt;div style="line-height: normal;"&gt;Does anyone know how to use the javascript WebSocket library in jint?&lt;br /&gt;
&lt;br /&gt;
I have an existing script that contains the line &amp;quot;var socket = new WebSocket()&amp;quot; but the jint engine doesn't what is web socket.&lt;br /&gt;
&lt;br /&gt;
Does anyone have a solution?&lt;br /&gt;
&lt;/div&gt;</description><author>eranre</author><pubDate>Thu, 18 Apr 2013 12:26:07 GMT</pubDate><guid isPermaLink="false">New Post: WebSocket on Jint 20130418122607P</guid></item><item><title>Created Unassigned: Incorrect ANTLR runtime version [6980]</title><link>http://jint.codeplex.com/workitem/6980</link><description>The Antlr3.Runtime.dll that is currently used requires .NET 3.5. However, Jint itself does not require .NET 3.5 and works OK with .NET 2.0. An Antlr3.Runtime.dll that works OK with .NET 2.0 can be downloaded from http&amp;#58;&amp;#47;&amp;#47;www.antlr.org&amp;#47;wiki&amp;#47;display&amp;#47;ANTLR3&amp;#47;Antlr3CSharpReleases &amp;#40;the &amp;#91;antlr-dotnet-csharpruntime-3.5.0.2.7z&amp;#93;&amp;#40;http&amp;#58;&amp;#47;&amp;#47;www.tunnelvisionlabs.com&amp;#47;downloads&amp;#47;antlr&amp;#47;antlr-dotnet-csharpruntime-3.5.0.2.7z&amp;#41; file&amp;#41;. I&amp;#39;ve tested with this and all tests pass using this version.&lt;br /&gt;</description><author>rpmodell</author><pubDate>Sun, 14 Apr 2013 09:10:54 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Incorrect ANTLR runtime version [6980] 20130414091054A</guid></item><item><title>Created Unassigned: ANTLR does not report all lexing/parsing errors [6979]</title><link>http://jint.codeplex.com/workitem/6979</link><description>ANTLR needs a little bit more configuration to ensure that all lexing&amp;#47;parsing errors are reported. Currently, not all lexing&amp;#47;parsing errors are reports.&lt;br /&gt;&lt;br /&gt;If the following code would be added somewhere in the project, ANTLR will report all lexing&amp;#47;parsing errors as exceptions&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;using System&amp;#59;&lt;br /&gt;using System.Collections.Generic&amp;#59;&lt;br /&gt;using System.Text&amp;#59;&lt;br /&gt;using Antlr.Runtime&amp;#59;&lt;br /&gt;&lt;br /&gt;partial class ES3Lexer&lt;br /&gt;&amp;#123;&lt;br /&gt;    public override void ReportError&amp;#40;RecognitionException e&amp;#41;&lt;br /&gt;    &amp;#123;&lt;br /&gt;        throw e&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&lt;br /&gt;    protected override object RecoverFromMismatchedToken&amp;#40;IIntStream input, int ttype, BitSet follow&amp;#41;&lt;br /&gt;    &amp;#123;&lt;br /&gt;        throw new MismatchedTokenException&amp;#40;ttype, input&amp;#41;&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&lt;br /&gt;    public override object RecoverFromMismatchedSet&amp;#40;IIntStream input, RecognitionException e, BitSet follow&amp;#41;&lt;br /&gt;    &amp;#123;&lt;br /&gt;        throw e&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;partial class ES3Parser&lt;br /&gt;&amp;#123;&lt;br /&gt;    public override void ReportError&amp;#40;RecognitionException e&amp;#41;&lt;br /&gt;    &amp;#123;&lt;br /&gt;        throw e&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&lt;br /&gt;    protected override object RecoverFromMismatchedToken&amp;#40;IIntStream input, int ttype, BitSet follow&amp;#41;&lt;br /&gt;    &amp;#123;&lt;br /&gt;        throw new MismatchedTokenException&amp;#40;ttype, input&amp;#41;&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&lt;br /&gt;    public override object RecoverFromMismatchedSet&amp;#40;IIntStream input, RecognitionException e, BitSet follow&amp;#41;&lt;br /&gt;    &amp;#123;&lt;br /&gt;        throw e&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;</description><author>rpmodell</author><pubDate>Sun, 14 Apr 2013 09:09:16 GMT</pubDate><guid isPermaLink="false">Created Unassigned: ANTLR does not report all lexing/parsing errors [6979] 20130414090916A</guid></item><item><title>New Post: Reuse of JintEngine? Performance question </title><link>http://jint.codeplex.com/discussions/439653</link><description>&lt;div style="line-height: normal;"&gt;Should I hold on to an JintEngine instance?&lt;br /&gt;
&lt;br /&gt;
private static JintEngine _scriptEngine;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;    private static JintEngine ScriptEngine
    {
        get { return _scriptEngine ?? (_scriptEngine = new JintEngine()); }
    }&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>Martin_Andersen</author><pubDate>Tue, 09 Apr 2013 14:08:05 GMT</pubDate><guid isPermaLink="false">New Post: Reuse of JintEngine? Performance question  20130409020805P</guid></item><item><title>New Post: Calling a function on a c-object</title><link>http://jint.codeplex.com/discussions/437910</link><description>&lt;div style="line-height: normal;"&gt;Just an update:&lt;br /&gt;
&lt;br /&gt;
When we create the father object within VB.NET and set its members to the original, it works. We can even modify the members of that instance within JavaScript, they are then changed in the original object. It seems that somehow the father object (OURComDataTypes.COURDocument) cannot be passed correctly to JavaScript, when it is created within the modules of our application written in C (COM). &lt;br /&gt;
&lt;br /&gt;
The first 3 lines of the function correct that. While this is a valid workaround, we are still confused why this could happen. Does anyone have an idea what we can do?&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;Public Function CallJavaScript(ByVal method As String, ByRef input As OURComDataTypes.COURDocument) As Boolean
    Dim input1 As New OURComDataTypes.COURDocument  // create a new instance 
    input1.ParameterList = input.ParameterList      // share members with the original
    input1.Children = input.Children                // dito
    If JavaScriptContext Is Nothing Then
        ' initialize the javascript engine
        JavaScriptContext = New Jint.JintEngine
        JavaScriptContext.AllowClr = True
        JavaScriptContext.DisableSecurity()
    End If

    Dim ScriptTextContent As String = ReadScript(method)
    If (ScriptTextContent.Length = 0) Then
        Throw New Exception(&amp;quot;JavaScript for method &amp;quot; &amp;amp; method &amp;amp; &amp;quot; is empty&amp;quot;)
        CallJavaScript = False
        Exit Function
    End If

    If Not input Is Nothing Then
         JavaScriptContext.SetParameter(&amp;quot;input&amp;quot;, input1)
    End If


    Try
       
        returnString = JavaScriptContext.Run(ScriptTextContent)
    ...
    
End Function&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>bee4cp</author><pubDate>Wed, 27 Mar 2013 14:09:06 GMT</pubDate><guid isPermaLink="false">New Post: Calling a function on a c-object 20130327020906P</guid></item><item><title>New Post: anchor form controls </title><link>http://jint.codeplex.com/discussions/438028</link><description>&lt;div style="line-height: normal;"&gt;How can achieve this:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;Control.Anchor = ((System.Windows.Forms.AnchorStyles)
                (((System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));&lt;/code&gt;&lt;/pre&gt;

in jint javascript?&lt;br /&gt;
thanks,&lt;br /&gt;
i.&lt;br /&gt;
&lt;/div&gt;</description><author>brojgar</author><pubDate>Tue, 26 Mar 2013 13:42:24 GMT</pubDate><guid isPermaLink="false">New Post: anchor form controls  20130326014224P</guid></item><item><title>New Post: Calling a function on a c-object</title><link>http://jint.codeplex.com/discussions/437910</link><description>&lt;div style="line-height: normal;"&gt;Hi, &lt;br /&gt;
&lt;br /&gt;
we have a C-library which is registered in windows and which we use for our shared informations.&lt;br /&gt;
We access this lib from VB.NET. We have instances to objects within that library, which we pass from VB.NET to the jint instance by setParameter()&lt;br /&gt;
&lt;br /&gt;
Depending on the way how we create the object, we get the error &amp;quot;Function expected&amp;quot; when we try to execute a method on that object. &lt;br /&gt;
&lt;br /&gt;
The javascript code looks like this:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
// now we access an object from a list of objects within the 
var pp = input.ParameterList.getFieldFromFieldCollection(&amp;quot;field1&amp;quot;)

// the objects have a member called &amp;quot;value&amp;quot;. We need to call get_Value() to access.
return pp.get_Value().toString()
&lt;/code&gt;&lt;/pre&gt;

Now, as said, when we create the input object &amp;quot;manually&amp;quot; from within VB.NET, the above javascript works fine. &lt;br /&gt;
&lt;br /&gt;
When we create the input object within other c methods and pass it through VB.NET, we always get &amp;quot;Function expected&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Any clues how to resolve this?&lt;br /&gt;
&lt;/div&gt;</description><author>bee4cp</author><pubDate>Mon, 25 Mar 2013 15:56:50 GMT</pubDate><guid isPermaLink="false">New Post: Calling a function on a c-object 20130325035650P</guid></item><item><title>New Post: Jint.JintJsException: Invalid IL code in (wrapper dynamic-method) Jint.Marshal.ProxyHelper:dynamicPropertyGetter (Jint.Marshaller,Jint.Native.JsDictionaryObject): method body is empty</title><link>http://jint.codeplex.com/discussions/437258</link><description>&lt;div style="line-height: normal;"&gt;Hi, I am getting this error on every script, I am running Jint inside a .Net application which is running on Mono. Has anyone seen this before?&lt;br /&gt;
&lt;br /&gt;
This is part of the stack trace:&lt;br /&gt;
&lt;br /&gt;
System.Delegate	CreateDelegate		0	0&lt;br /&gt;
System.Delegate	CreateDelegate		0	0&lt;br /&gt;
System.Reflection.Emit.DynamicMethod	CreateDelegate		0	0&lt;br /&gt;
Jint.Marshal.ProxyHelper	WrapGetProperty		0	0&lt;br /&gt;
Jint.Marshaller	WrapGetProperty		0	0&lt;br /&gt;
Jint.Marshaller	MarshalPropertyInfo		0	0&lt;br /&gt;
Jint.Native.NativeConstructor	.ctor		0	0&lt;br /&gt;
Jint.Native.NativeTypeConstructor	Wrap		0	0&lt;br /&gt;
Jint.Marshaller	CreateConstructor		0	0&lt;br /&gt;
Jint.Marshaller	MarshalType		0	0&lt;br /&gt;
Jint.Marshaller	MarshalClrValue		0	0&lt;br /&gt;
Jint.Native.NativeDescriptor	Get		0	0&lt;br /&gt;
Jint.Native.JsDictionaryObject	TryGetProperty		0	0&lt;br /&gt;
.....&lt;br /&gt;
&lt;br /&gt;
Looking inside NativeConstructor.cs there is only two calls to MarshalPropertyInfo:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;        // find and add all static properties and fields
        foreach (var info in type.GetProperties(BindingFlags.Static | BindingFlags.Public))
            DefineOwnProperty(Global.Marshaller.MarshalPropertyInfo(info, this));
&lt;/code&gt;&lt;/pre&gt;

and &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;        foreach (var info in type.GetProperties(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public))
        {
            ParameterInfo[] indexerParams = info.GetIndexParameters();
            if (indexerParams == null || indexerParams.Length == 0)
                m_properties.AddLast(global.Marshaller.MarshalPropertyInfo(info, this));
&lt;/code&gt;&lt;/pre&gt;

It seems like a similar issue to this: &lt;a href="https://bugzilla.xamarin.com/show_bug.cgi?id=6821#c5" rel="nofollow"&gt;https://bugzilla.xamarin.com/show_bug.cgi?id=6821#c5&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Any help would be amazing&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;/div&gt;</description><author>jch254</author><pubDate>Tue, 19 Mar 2013 23:38:38 GMT</pubDate><guid isPermaLink="false">New Post: Jint.JintJsException: Invalid IL code in (wrapper dynamic-method) Jint.Marshal.ProxyHelper:dynamicPropertyGetter (Jint.Marshaller,Jint.Native.JsDictionaryObject): method body is empty 20130319113838P</guid></item><item><title>Reviewed: Jint - 0.9.2 (三月 18, 2013)</title><link>http://jint.codeplex.com/releases/view/71783#ReviewBy-kissxrl</link><description>Rated 5 Stars &amp;#40;out of 5&amp;#41; - Some too complicated. I want to integrate into DLL.</description><author>kissxrl</author><pubDate>Mon, 18 Mar 2013 20:48:54 GMT</pubDate><guid isPermaLink="false">Reviewed: Jint - 0.9.2 (三月 18, 2013) 20130318084854P</guid></item><item><title>Created Issue: Loopung through arguments keys [6978]</title><link>http://jint.codeplex.com/workitem/6978</link><description>Hi, I encountered what seems to be a bug when I tried to go through a function arguments. &lt;br /&gt;arguments.GetKeys&amp;#40;&amp;#41; returned nothing when the length was 2. &lt;br /&gt;I had to use a tiny function like this one to solve my issue &amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;function cast&amp;#40;array&amp;#41; &amp;#123;&lt;br /&gt;    if &amp;#40;&amp;#33;isServerSide&amp;#41; &amp;#47;&amp;#47;Only needed with Jint, works fine client-side&lt;br /&gt;        return array&amp;#59;&lt;br /&gt;    var result &amp;#61; &amp;#91;&amp;#93;&amp;#59;&lt;br /&gt;    for &amp;#40;var i &amp;#61; 0&amp;#59; i &amp;#60; array.length&amp;#59; i&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;        result&amp;#91;i&amp;#93; &amp;#61; array&amp;#91;i&amp;#93;&amp;#59;&lt;br /&gt;    return result&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Don&amp;#39;t know if it will help someone but I wanted to report it.&lt;br /&gt;The version of the dll I use is 0.9.1.&lt;br /&gt;</description><author>Synryu</author><pubDate>Mon, 11 Mar 2013 13:01:51 GMT</pubDate><guid isPermaLink="false">Created Issue: Loopung through arguments keys [6978] 20130311010151P</guid></item><item><title>New Post: Debugging CallFunction</title><link>http://jint.codeplex.com/discussions/284732</link><description>&lt;div style="line-height: normal;"&gt;don't you have to write the function like thus&lt;br /&gt;
&lt;br /&gt;
var test = function(){&lt;br /&gt;
code;&lt;br /&gt;
code;&lt;br /&gt;
etc etc;;&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;</description><author>notahack</author><pubDate>Sat, 09 Mar 2013 00:32:36 GMT</pubDate><guid isPermaLink="false">New Post: Debugging CallFunction 20130309123236A</guid></item><item><title>New Post: File exists detection</title><link>http://jint.codeplex.com/discussions/405262</link><description>&lt;div style="line-height: normal;"&gt;I bet javascript doesn't need that @ sign in front of the string&lt;br /&gt;
&lt;/div&gt;</description><author>notahack</author><pubDate>Sat, 09 Mar 2013 00:29:03 GMT</pubDate><guid isPermaLink="false">New Post: File exists detection 20130309122903A</guid></item><item><title>New Post: Dang even a caveman can use it BUT ...</title><link>http://jint.codeplex.com/discussions/435965</link><description>&lt;div style="line-height: normal;"&gt;I am rewriting a vb6 project that I used the WSH in. Basically I defined some classes I plugged into the script for users to use functions from.  I kept plugging in other objects and then I would call functions to act like events that would execute user written scripting that would manipulate those objects. I always got what information I needed from those changed objects and never relied on any return code. This code will do exactly that for me and so far I am happy happy happy.&lt;br /&gt;
&lt;br /&gt;
My BUT is this. I will construct the script and run it once to compile it. From then on out I will be constantly, sometimes hundreds of times a minute, using SetParameter to plug in objects and calling the trigger/event functions. Will banging on jint like that be any problem for hours on end?&lt;br /&gt;
&lt;/div&gt;</description><author>notahack</author><pubDate>Sat, 09 Mar 2013 00:16:38 GMT</pubDate><guid isPermaLink="false">New Post: Dang even a caveman can use it BUT ... 20130309121638A</guid></item><item><title>New Post: How do I go from a Javascript array to a c#  object?</title><link>http://jint.codeplex.com/discussions/360886</link><description>&lt;div style="line-height: normal;"&gt;Late to the party but for anyone googling it can be done like this:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;Jint.JintEngine engine = new Jint.JintEngine();
Jint.Native.JsArray result = engine.Run(script);

for (var i = 0; i &amp;lt; result.Length; i++)
{
    var jsObj = result.get(i) as Jint.Native.JsObject;

    if (jsObj == null) continue;

    foreach (var kvp in jsObj)
    {
        Console.WriteLine(&amp;quot;{0} is {1}&amp;quot;, kvp.Key, kvp.Value);
    }
}&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>alexrootes</author><pubDate>Sun, 03 Mar 2013 13:02:27 GMT</pubDate><guid isPermaLink="false">New Post: How do I go from a Javascript array to a c#  object? 20130303010227P</guid></item><item><title>Created Issue: Infinity [6977]</title><link>http://jint.codeplex.com/workitem/6977</link><description>JS code&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;var t &amp;#61; 1 &amp;#47; 0&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;return me -infinity.&lt;br /&gt;&lt;br /&gt;In JsNumberConstructor.cs&lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;this.DefineOwnProperty&amp;#40;&amp;#34;NEGATIVE_INFINITY&amp;#34;, New&amp;#40;Double.PositiveInfinity&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;this.DefineOwnProperty&amp;#40;&amp;#34;POSITIVE_INFINITY&amp;#34;, New&amp;#40;Double.NegativeInfinity&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;There is something wrong&amp;#63;&amp;#33;&lt;br /&gt;</description><author>Salia2</author><pubDate>Sat, 23 Feb 2013 18:54:43 GMT</pubDate><guid isPermaLink="false">Created Issue: Infinity [6977] 20130223065443P</guid></item></channel></rss>