<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>jint Issue Tracker Rss Feed</title><link>http://jint.codeplex.com/WorkItem/List.aspx</link><description>jint Issue Tracker Rss Description</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>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>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>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>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><item><title>Created Issue: Calling __defineGetter__ throws JintException [6976]</title><link>http://jint.codeplex.com/workitem/6976</link><description>Executing this simple code&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;var engine &amp;#61; new JintEngine&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;engine.Run&amp;#40;&amp;#64;&amp;#34;&lt;br /&gt; A &amp;#61; &amp;#123;&amp;#125;&amp;#59;&lt;br /&gt; A.__defineGetter__&amp;#40;&amp;#39;foo&amp;#39;, function&amp;#40;&amp;#41; &amp;#123; return &amp;#39;bar&amp;#39;&amp;#59; &amp;#125;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;throws following exception&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Unhandled Exception&amp;#58; Jint.JintException&amp;#58; Function expected.&lt;br /&gt;Line&amp;#58; 3 Char&amp;#58; 20&lt;br /&gt;No source code available. ---&amp;#62; Jint.Native.JsException&amp;#58; Exception of type &amp;#39;Jint.&lt;br /&gt;Native.JsException&amp;#39; was thrown.&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;MethodCall methodCall&amp;#41;&lt;br /&gt;   at Jint.Expressions.MethodCall.Accept&amp;#40;IStatementVisitor visitor&amp;#41;&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;MemberExpression expression&amp;#41;&lt;br /&gt;   at Jint.Expressions.MemberExpression.Accept&amp;#40;IStatementVisitor visitor&amp;#41;&lt;br /&gt;   at Jint.ExecutionVisitor.Visit&amp;#40;ExpressionStatement statement&amp;#41;&lt;br /&gt;   at Jint.Expressions.ExpressionStatement.Accept&amp;#40;IStatementVisitor visitor&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 JintTest.Program.JintTest&amp;#40;&amp;#41; in ...&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;</description><author>miszczu</author><pubDate>Sat, 26 Jan 2013 23:01:24 GMT</pubDate><guid isPermaLink="false">Created Issue: Calling __defineGetter__ throws JintException [6976] 20130126110124P</guid></item><item><title>Created Issue: Detailed exception is required [6975]</title><link>http://jint.codeplex.com/workitem/6975</link><description>When script call function that not defined i see&amp;#58; &amp;#34;Function expected&amp;#34;.&lt;br /&gt;But what function&amp;#63; Why there not function name&amp;#63; &lt;br /&gt;&lt;br /&gt;How hard to add a little more details to the exception message&amp;#63;&lt;br /&gt;</description><author>pro100sanya</author><pubDate>Sun, 18 Nov 2012 21:41:15 GMT</pubDate><guid isPermaLink="false">Created Issue: Detailed exception is required [6975] 20121118094115P</guid></item><item><title>Created Issue: eval doesnt scope right [6974]</title><link>http://jint.codeplex.com/workitem/6974</link><description>eval.apply&amp;#40;this,&amp;#91;&amp;#34;....&amp;#34;&amp;#93;&amp;#41; with this &amp;#61; global should be operating on global scope. It does not&lt;br /&gt;&lt;br /&gt;ie in jintshell&lt;br /&gt;&lt;br /&gt;f&amp;#61;function&amp;#40;&amp;#41;&amp;#123;eval.apply&amp;#40;this,arguments&amp;#41;&amp;#125;&lt;br /&gt;f&amp;#40;&amp;#34;var foo &amp;#61; 42&amp;#34;&amp;#41;&lt;br /&gt;print&amp;#40;foo&amp;#41;&lt;br /&gt;&lt;br /&gt;should say 42, instead is says object not found&lt;br /&gt;&lt;br /&gt;ie, firefox, chrome all say 42&lt;br /&gt;&lt;br /&gt;I have tried to fix this but dont fully understand the scope system in jint and so far have not suceeded&lt;br /&gt;</description><author>pm100</author><pubDate>Fri, 26 Oct 2012 20:27:33 GMT</pubDate><guid isPermaLink="false">Created Issue: eval doesnt scope right [6974] 20121026082733P</guid></item><item><title>Created Issue: parseInt(string, int) not working [6973]</title><link>http://jint.codeplex.com/workitem/6973</link><description>Calling parseInt&amp;#40;&amp;#34;09&amp;#34;, 10&amp;#41; causes Exception, because Jint still interprets leading zero as octal number although there is radix 10. So it is impossible to parse integer from numbers with leading zeros. &lt;br /&gt;</description><author>baboon27</author><pubDate>Tue, 23 Oct 2012 17:41:51 GMT</pubDate><guid isPermaLink="false">Created Issue: parseInt(string, int) not working [6973] 20121023054151P</guid></item><item><title>Created Issue: string.valueOf doesnt work [6972]</title><link>http://jint.codeplex.com/workitem/6972</link><description>if I have a string created by calling .net code &amp;#40;maybe other cases too&amp;#41; then valueOf on it doesnt work&lt;br /&gt;&lt;br /&gt;It fails because jstringconstructor declares valueOf to take a jsstring &amp;#40;at the call time we have a jsobject not a jstring&amp;#41;. It should be declared to take a JsDictionaryObject just like all the other string functions are.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><author>pm100</author><pubDate>Fri, 12 Oct 2012 17:54:52 GMT</pubDate><guid isPermaLink="false">Created Issue: string.valueOf doesnt work [6972] 20121012055452P</guid></item><item><title>Commented Issue: Only use Doubles [6971]</title><link>http://jint.codeplex.com/workitem/6971</link><description>Nowhere in the documentation states that your function delegates &amp;#42;must&amp;#42; use doubles as a number input type. &amp;#40;But then again I didn&amp;#39;t read everything yet&amp;#41;.&lt;br /&gt;&lt;br /&gt;The simple piece of code&amp;#58;&lt;br /&gt;&lt;br /&gt;            engine.SetFunction&amp;#40;&amp;#34;SquareInt&amp;#34;, new Func&amp;#60;int, int&amp;#62;&amp;#40;a &amp;#61;&amp;#62; &amp;#123; return a &amp;#42; a&amp;#59; &amp;#125;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Will fail when the function is ran, when it doesn&amp;#39;t necessarily have to. Who cares if the input types are Int32&amp;#63; If the JS interpreter uses doubles anyways you can up-convert them because an Int32 to Double is an implicit conversion &amp;#40;so is float, short and byte&amp;#41;. At the very least this will stop me from having to rewrite delegates that must explicitly cast doubles into ints, which from a design perspective can be bad since doubles encode different information.&lt;br /&gt;&lt;br /&gt;Or I could just rewrite my functions to just take doubles, your call. I honestly don&amp;#39;t know if it can be done or not since the delegate-taking-ints is in &amp;#34;C&amp;#35; land&amp;#34; while doubles only live in &amp;#34;JS land&amp;#34;. Unless there&amp;#39;s a way to somehow change the types on delegates.&lt;br /&gt;Comments: There is no implicit conversion from double to int, since it leads a precision loss. In the other hand it is possible to use a .NET value types in scripts, for example you can use System.Convert.ToInt32 to convert Double to Int32 explicitly or if you know that a value you are using is got from a CLR method which returns an integer.&amp;#10;&amp;#10;JS has many strange things, consider this example&amp;#10;&amp;#10;var a &amp;#61; new Number&amp;#40;5&amp;#41;&amp;#59;&amp;#10;var b &amp;#61; new Number&amp;#40;5&amp;#41;&amp;#59;&amp;#10;&amp;#10;var answer &amp;#61; a &amp;#61;&amp;#61; b &amp;#63; &amp;#39;yes&amp;#39; &amp;#58; &amp;#39;no&amp;#39;&amp;#59;</description><author>cin</author><pubDate>Sat, 29 Sep 2012 19:51:36 GMT</pubDate><guid isPermaLink="false">Commented Issue: Only use Doubles [6971] 20120929075136P</guid></item><item><title>Created Issue: Only use Doubles [6971]</title><link>http://jint.codeplex.com/workitem/6971</link><description>Nowhere in the documentation states that your function delegates &amp;#42;must&amp;#42; use doubles as a number input type. &amp;#40;But then again I didn&amp;#39;t read everything yet&amp;#41;.&lt;br /&gt;&lt;br /&gt;The simple piece of code&amp;#58;&lt;br /&gt;&lt;br /&gt;            engine.SetFunction&amp;#40;&amp;#34;SquareInt&amp;#34;, new Func&amp;#60;int, int&amp;#62;&amp;#40;a &amp;#61;&amp;#62; &amp;#123; return a &amp;#42; a&amp;#59; &amp;#125;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Will fail when the function is ran, when it doesn&amp;#39;t necessarily have to. Who cares if the input types are Int32&amp;#63; If the JS interpreter uses doubles anyways you can up-convert them because an Int32 to Double is an implicit conversion &amp;#40;so is float, short and byte&amp;#41;. At the very least this will stop me from having to rewrite delegates that must explicitly cast doubles into ints, which from a design perspective can be bad since doubles encode different information.&lt;br /&gt;&lt;br /&gt;Or I could just rewrite my functions to just take doubles, your call. I honestly don&amp;#39;t know if it can be done or not since the delegate-taking-ints is in &amp;#34;C&amp;#35; land&amp;#34; while doubles only live in &amp;#34;JS land&amp;#34;. Unless there&amp;#39;s a way to somehow change the types on delegates.&lt;br /&gt;</description><author>Radnen</author><pubDate>Tue, 18 Sep 2012 03:57:27 GMT</pubDate><guid isPermaLink="false">Created Issue: Only use Doubles [6971] 20120918035727A</guid></item><item><title>Commented Issue: slice isn't 100% compatible [6970]</title><link>http://jint.codeplex.com/workitem/6970</link><description>&amp;#34;&amp;#34;.slice&amp;#40;1&amp;#41; should return &amp;#34;&amp;#34;.  Instead, it errors.&lt;br /&gt;&lt;br /&gt;Jint.JintException &amp;#58; startIndex cannot be larger than length of string.&lt;br /&gt;Parameter name&amp;#58; startIndex&lt;br /&gt;Line&amp;#58; 636 Char&amp;#58; 8&lt;br /&gt;No source code available.&lt;br /&gt;  ----&amp;#62; System.ArgumentOutOfRangeException &amp;#58; startIndex cannot be larger than length of string.&lt;br /&gt;Parameter name&amp;#58; startIndex&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments: Bug is in JsStringConstructor.SliceImpl</description><author>d_brownx</author><pubDate>Sat, 25 Aug 2012 16:18:22 GMT</pubDate><guid isPermaLink="false">Commented Issue: slice isn't 100% compatible [6970] 20120825041822P</guid></item><item><title>Edited Issue: slice isn't 100% compatible [6970]</title><link>http://jint.codeplex.com/workitem/6970</link><description>&amp;#34;&amp;#34;.slice&amp;#40;1&amp;#41; should return &amp;#34;&amp;#34;.  Instead, it errors.&lt;br /&gt;&lt;br /&gt;Jint.JintException &amp;#58; startIndex cannot be larger than length of string.&lt;br /&gt;Parameter name&amp;#58; startIndex&lt;br /&gt;Line&amp;#58; 636 Char&amp;#58; 8&lt;br /&gt;No source code available.&lt;br /&gt;  ----&amp;#62; System.ArgumentOutOfRangeException &amp;#58; startIndex cannot be larger than length of string.&lt;br /&gt;Parameter name&amp;#58; startIndex&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><author>d_brownx</author><pubDate>Sat, 25 Aug 2012 15:52:30 GMT</pubDate><guid isPermaLink="false">Edited Issue: slice isn't 100% compatible [6970] 20120825035230P</guid></item><item><title>Created Issue: split isn't 100% compatible [6970]</title><link>http://jint.codeplex.com/workitem/6970</link><description>&amp;#34;&amp;#34;.split&amp;#40;1&amp;#41; should return &amp;#91;&amp;#34;&amp;#34;&amp;#93;.  Instead, it errors.&lt;br /&gt;&lt;br /&gt;Jint.JintException &amp;#58; startIndex cannot be larger than length of string.&lt;br /&gt;Parameter name&amp;#58; startIndex&lt;br /&gt;Line&amp;#58; 636 Char&amp;#58; 8&lt;br /&gt;No source code available.&lt;br /&gt;  ----&amp;#62; System.ArgumentOutOfRangeException &amp;#58; startIndex cannot be larger than length of string.&lt;br /&gt;Parameter name&amp;#58; startIndex&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><author>d_brownx</author><pubDate>Sat, 25 Aug 2012 15:16:22 GMT</pubDate><guid isPermaLink="false">Created Issue: split isn't 100% compatible [6970] 20120825031622P</guid></item><item><title>Created Issue: engine.CallFunction cannot call qualified names [6969]</title><link>http://jint.codeplex.com/workitem/6969</link><description>for example I have load a well known JSON parser&amp;#47;stringify so I have methods JSON.parse adn JSON.stringify at global scope. But I cannot call them via CallFunction. I have to do&lt;br /&gt;&lt;br /&gt;jint.Run&amp;#40;&amp;#34;var json_stringify &amp;#61; JSON.stringify&amp;#59;&amp;#34;&amp;#41;&amp;#58;&lt;br /&gt;jint.CallFunction&amp;#40;&amp;#34;json_stringify&amp;#34;, obj&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><author>pm100</author><pubDate>Wed, 22 Aug 2012 17:34:52 GMT</pubDate><guid isPermaLink="false">Created Issue: engine.CallFunction cannot call qualified names [6969] 20120822053452P</guid></item><item><title>Created Issue: cannot serilaize jsobject using json.net [6968]</title><link>http://jint.codeplex.com/workitem/6968</link><description>I call jint and have it return complex object &amp;#40; &amp;#123;foo&amp;#58;12, bar&amp;#58;&amp;#39;xxx&amp;#39; , etc &amp;#125;&amp;#41;&lt;br /&gt;&lt;br /&gt;Trying to serialize that using json.net fails. &lt;br /&gt;&lt;br /&gt;IT fails deep in json .net becuase jsdictionaryobject says its supports ienumerable&amp;#60;string, jsinstance&amp;#62; but when you call IEnumerable.GetEnumerator &amp;#40;the non generic version&amp;#41; it returns an enumerator of &amp;#60;string, Descriptor&amp;#62;. THis blows json.net up&lt;br /&gt;</description><author>pm100</author><pubDate>Wed, 22 Aug 2012 00:18:48 GMT</pubDate><guid isPermaLink="false">Created Issue: cannot serilaize jsobject using json.net [6968] 20120822121848A</guid></item><item><title>Edited Issue: Callbacks from another C# thread into JintEngine.Callback cause corruption, crash. [6967]</title><link>http://jint.codeplex.com/workitem/6967</link><description>Build &amp;#40;from .csproj&amp;#41; 9.0.30729&lt;br /&gt;&lt;br /&gt;In .Net 3.5 When calling from another thread into JintEngine.CallFunction causes corruption in the script running and forces errors. The issue is that Result is global and therefore any change to it during the callback cause the result of the function that is currently running to be invalid.&lt;br /&gt;&lt;br /&gt;The error occurs in ExecutionVisitor.ExecuteFunction&amp;#40;JsFunction function, JsDictionaryObject that, JsInstance&amp;#91;&amp;#93; parameters&amp;#41; when it updates Result, which is globally scoped.&lt;br /&gt;&lt;br /&gt;To correct this, I modified JintEngine.CallFunction&amp;#58;&lt;br /&gt;&lt;br /&gt;public object CallFunction&amp;#40;JsFunction function, params object&amp;#91;&amp;#93; args&amp;#41; &amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;Jint.Native.JsInstance aResult &amp;#61; null&amp;#59;&lt;br /&gt;            visitor.ExecuteFunction&amp;#40;function, null, Array.ConvertAll&amp;#60;object,JsInstance&amp;#62;&amp;#40; args, x &amp;#61;&amp;#62; visitor.Global.Marshaller.MarshalClrValue&amp;#60;object&amp;#62;&amp;#40;x&amp;#41; &amp;#41;, out aResult&amp;#41;&amp;#59;&lt;br /&gt;            return visitor.Global.Marshaller.MarshalJsValue&amp;#60;object&amp;#62;&amp;#40;aResult&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;And then added a new ExecutionVisitor.ExecuteFunction that appears to work properly and not corrupt the environment&amp;#58;&lt;br /&gt;&lt;br /&gt;        public void ExecuteFunction&amp;#40;JsFunction function, JsDictionaryObject that, JsInstance&amp;#91;&amp;#93; parameters, out Jint.Native.JsInstance aResult&amp;#41; &amp;#123;&lt;br /&gt;            if &amp;#40;function &amp;#61;&amp;#61; null&amp;#41; &amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;aResult &amp;#61; null&amp;#59;&lt;br /&gt;                return&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;&lt;br /&gt;            if &amp;#40;recursionLevel&amp;#43;&amp;#43; &amp;#62; MaxRecursions&amp;#41; &amp;#123;&lt;br /&gt;                throw new JsException&amp;#40;Global.ErrorClass.New&amp;#40;&amp;#34;Too many recursions in the script.&amp;#34;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;&lt;br /&gt;            &amp;#47;&amp;#47; ecma chapter 10.&lt;br /&gt;            &amp;#47;&amp;#47; TODO&amp;#58; move creation of the activation object to the JsFunction&lt;br /&gt;            &amp;#47;&amp;#47; create new argument object and instantinate arguments into it&lt;br /&gt;            JsArguments args &amp;#61; new JsArguments&amp;#40;Global, function, parameters&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            &amp;#47;&amp;#47; create new activation object and copy instantinated arguments to it&lt;br /&gt;            &amp;#47;&amp;#47; Activation should be before the function.Scope hierarchy&lt;br /&gt;            JsScope functionScope &amp;#61; new JsScope&amp;#40;function.Scope &amp;#63;&amp;#63; GlobalScope&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            for &amp;#40;int i &amp;#61; 0&amp;#59; i &amp;#60; function.Arguments.Count&amp;#59; i&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;                if &amp;#40;i &amp;#60; parameters.Length&amp;#41;&lt;br /&gt;                    functionScope.DefineOwnProperty&amp;#40;&lt;br /&gt;                        new LinkedDescriptor&amp;#40;&lt;br /&gt;                            functionScope,&lt;br /&gt;                            function.Arguments&amp;#91;i&amp;#93;,&lt;br /&gt;                            args.GetDescriptor&amp;#40;i.ToString&amp;#40;&amp;#41;&amp;#41;,&lt;br /&gt;                            args&lt;br /&gt;                        &amp;#41;&lt;br /&gt;                    &amp;#41;&amp;#59;&lt;br /&gt;                else&lt;br /&gt;                    functionScope.DefineOwnProperty&amp;#40;&lt;br /&gt;                        new ValueDescriptor&amp;#40;&lt;br /&gt;                            functionScope,&lt;br /&gt;                            function.Arguments&amp;#91;i&amp;#93;,&lt;br /&gt;                            JsUndefined.Instance&lt;br /&gt;                        &amp;#41;&lt;br /&gt;                    &amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            &amp;#47;&amp;#47; define arguments variable&lt;br /&gt;            if &amp;#40;HasOption&amp;#40;Options.Strict&amp;#41;&amp;#41;&lt;br /&gt;                functionScope.DefineOwnProperty&amp;#40;JsScope.ARGUMENTS, args&amp;#41;&amp;#59;&lt;br /&gt;            else&lt;br /&gt;                args.DefineOwnProperty&amp;#40;JsScope.ARGUMENTS, args&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            &amp;#47;&amp;#47; set this variable&lt;br /&gt;            if &amp;#40;that &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;                functionScope.DefineOwnProperty&amp;#40;JsScope.THIS, that&amp;#41;&amp;#59;&lt;br /&gt;            else&lt;br /&gt;                functionScope.DefineOwnProperty&amp;#40;JsScope.THIS, that &amp;#61; Global as JsObject&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            &amp;#47;&amp;#47; enter activation object&lt;br /&gt;            EnterScope&amp;#40;functionScope&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            try &amp;#123;&lt;br /&gt;                PermissionSet.PermitOnly&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                aResult &amp;#61; function.Execute&amp;#40;this, that, parameters&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                &amp;#47;&amp;#47; Resets the return flag&lt;br /&gt;                if &amp;#40;exit&amp;#41; &amp;#123;&lt;br /&gt;                    exit &amp;#61; false&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            finally &amp;#123;&lt;br /&gt;                &amp;#47;&amp;#47; return to previous execution state&lt;br /&gt;                ExitScope&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                CodeAccessPermission.RevertPermitOnly&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                recursionLevel--&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;</description><author>rwdim</author><pubDate>Fri, 10 Aug 2012 16:41:33 GMT</pubDate><guid isPermaLink="false">Edited Issue: Callbacks from another C# thread into JintEngine.Callback cause corruption, crash. [6967] 20120810044133P</guid></item></channel></rss>