Dust.js with Jint raises JintException: Function expected

Hi I'm trying to run linkedin fork of Dust.js with Jint but get JintException. Code that I use works on Jurassic and Javascriptdotnet. dust-full-1.2.0.js is taken from https://github.com/linkedin...

Id #6981 | Release: None | Updated: Apr 23 at 9:59 AM by ewgenym | Created: Apr 23 at 9:58 AM by ewgenym

Incorrect ANTLR runtime version

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 ...

Id #6980 | Release: None | Updated: Sat at 10:08 PM by TheRandomGuy | Created: Apr 14 at 9:10 AM by rpmodell

ANTLR does not report all lexing/parsing errors

ANTLR needs a little bit more configuration to ensure that all lexing/parsing errors are reported. Currently, not all lexing/parsing errors are reports. If the following code would be added somew...

Id #6979 | Release: None | Updated: Apr 14 at 9:09 AM by rpmodell | Created: Apr 14 at 9:09 AM by rpmodell

Loopung through arguments keys

Hi, I encountered what seems to be a bug when I tried to go through a function arguments. arguments.GetKeys() returned nothing when the length was 2. I had to use a tiny function like this one ...

Id #6978 | Release: None | Updated: Mar 11 at 1:01 PM by Synryu | Created: Mar 11 at 1:01 PM by Synryu

Infinity

JS code var t = 1 / 0; return me -infinity. In JsNumberConstructor.cs this.DefineOwnProperty("NEGATIVE_INFINITY", New(Double.PositiveInfinity)); this.DefineOwnProperty("POSITIVE_INFINITY", New(D...

Id #6977 | Release: None | Updated: Feb 23 at 5:54 PM by Salia2 | Created: Feb 23 at 5:54 PM by Salia2

Calling __defineGetter__ throws JintException

Executing this simple code: var engine = new JintEngine(); engine.Run(@" A = {}; A.__defineGetter__('foo', function() { return 'bar'; }); "); throws following exception: Unhandled Exception: Jint...

Id #6976 | Release: None | Updated: Jan 26 at 10:01 PM by miszczu | Created: Jan 26 at 10:01 PM by miszczu

Detailed exception is required

When script call function that not defined i see: "Function expected". But what function? Why there not function name? How hard to add a little more details to the exception message?

Id #6975 | Release: None | Updated: Nov 18, 2012 at 8:41 PM by pro100sanya | Created: Nov 18, 2012 at 8:41 PM by pro100sanya

eval doesnt scope right

eval.apply(this,["...."]) with this = global should be operating on global scope. It does not ie in jintshell f=function(){eval.apply(this,arguments)} f("var foo = 42") print(foo) should sa...

Id #6974 | Release: None | Updated: Oct 26, 2012 at 8:27 PM by pm100 | Created: Oct 26, 2012 at 8:27 PM by pm100

parseInt(string, int) not working

Calling parseInt("09", 10) 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 ze...

Id #6973 | Release: None | Updated: Oct 23, 2012 at 5:41 PM by baboon27 | Created: Oct 23, 2012 at 5:41 PM by baboon27

string.valueOf doesnt work

if I have a string created by calling .net code (maybe other cases too) then valueOf on it doesnt work It fails because jstringconstructor declares valueOf to take a jsstring (at the call time we...

Id #6972 | Release: None | Updated: Oct 12, 2012 at 5:54 PM by pm100 | Created: Oct 12, 2012 at 5:54 PM by pm100

Only use Doubles

Nowhere in the documentation states that your function delegates must use doubles as a number input type. (But then again I didn't read everything yet). The simple piece of code: engine.S...

Id #6971 | Release: None | Updated: Sep 29, 2012 at 7:51 PM by cin | Created: Sep 18, 2012 at 3:57 AM by Radnen

slice isn't 100% compatible

"".slice(1) should return "". Instead, it errors. Jint.JintException : startIndex cannot be larger than length of string. Parameter name: startIndex Line: 636 Char: 8 No source code available...

Id #6970 | Release: None | Updated: Aug 25, 2012 at 4:18 PM by d_brownx | Created: Aug 25, 2012 at 3:16 PM by d_brownx

engine.CallFunction cannot call qualified names

for example I have load a well known JSON parser/stringify so I have methods JSON.parse adn JSON.stringify at global scope. But I cannot call them via CallFunction. I have to do jint.Run("var jso...

Id #6969 | Release: None | Updated: Aug 22, 2012 at 5:34 PM by pm100 | Created: Aug 22, 2012 at 5:34 PM by pm100

cannot serilaize jsobject using json.net

I call jint and have it return complex object ( {foo:12, bar:'xxx' , etc }) Trying to serialize that using json.net fails. IT fails deep in json .net becuase jsdictionaryobject says its suppor...

Id #6968 | Release: None | Updated: Aug 22, 2012 at 12:18 AM by pm100 | Created: Aug 22, 2012 at 12:18 AM by pm100

Callbacks from another C# thread into JintEngine.Callback cause corruption, crash.

Build (from .csproj) 9.0.30729 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 glo...

Id #6967 | Release: None | Updated: Aug 10, 2012 at 4:41 PM by rwdim | Created: Aug 10, 2012 at 4:30 PM by rwdim

Engine.Run(Program program) does not call Program.Accept

As described in title, calling Engine.Run(Program program) does not call Program.Accept. instead, it calls visitor.visit manually. Why I needed it? It is because Modules feature of Jscript engi...

Id #6966 | Release: None | Updated: Aug 10, 2012 at 10:20 AM by edokan | Created: Aug 10, 2012 at 10:17 AM by edokan

Inaccurate Behavior when Comparing Strings

When evaluating expressions such as ('c' < 'd'), Jint inaccurately returns false because it is trying to convert 'c' and 'd' to numbers. I would recommend a fix such as adding the following branch...

Id #6965 | Release: None | Updated: Jul 30, 2012 at 1:48 AM by erdomke | Created: Jul 30, 2012 at 1:48 AM by erdomke

Probelm calling function from anothe assembly

Whe current released version DLLs work well with the attached code. But when I use the Jint.DLL compiled with the lasted source code under Vistual Studio 2008, exception is thrown. The error mes...

Id #6964 | Release: None | Updated: Jul 13, 2012 at 8:00 PM by zhihongwang | Created: Jul 6, 2012 at 7:26 PM by zhihongwang

Array indexOf test will always be false

I came across an issue where an indexOf condition was coming false. I then noticed this line in JsArrayConstructor StrictlyEquals(Global, result, searchParameter) == Global.BooleanClass.True ...

Id #6963 | Release: None | Updated: Jul 2, 2012 at 5:02 PM by jtrahan | Created: Jul 2, 2012 at 5:02 PM by jtrahan

Octal Escape codes not processed properly.

I came across an issue where a function I found on the internet was escaping with \0. Per the standards the octal code range can go from 0 to 377. This line will cause and exception if you use \0...

Id #6962 | Release: None | Updated: Jul 2, 2012 at 6:05 PM by jtrahan | Created: Jul 2, 2012 at 4:57 PM by jtrahan

Regression in Jint.Native.JsArray: enumerating items with foreach does not work

Used to work in 0.8.8

Id #6961 | Release: None | Updated: Jun 29, 2012 at 8:29 PM by agoloshchapov | Created: Jun 29, 2012 at 8:29 PM by agoloshchapov

setTimeout and setInterval is not supported

See Subject

Id #6960 | Release: None | Updated: Jun 28, 2012 at 3:58 PM by jtrahan | Created: Jun 28, 2012 at 3:58 PM by jtrahan

CallFunction only handles Global functions

I tried wrapping functions into it's own namespace and CallFunction appears to not like it. I get a null exception when doing it this way. Example jint.Run(@" var MyClass = { EpicFail: fun...

Id #6959 | Release: None | Updated: Jun 28, 2012 at 2:33 PM by jtrahan | Created: Jun 26, 2012 at 9:58 AM by jtrahan

Invalid String Format

In various ToString functions you have for example. return String.Format("function {0}() { [native code] }", xxx.Method.Name); It needs to be formatted with double brackets like below otherwise...

Id #6958 | Release: None | Updated: Jun 25, 2012 at 7:25 PM by jtrahan | Created: Jun 25, 2012 at 7:25 PM by jtrahan

clr object property on right hand side doesnt work

var m = Func(); var j = m.Prop; Func is added via SetFunction it returns an instance of a clr object that has property 'Prop' j does not get set to the value of m.Prop m.Prop is looked up a...

Id #6957 | Release: None | Updated: Jun 25, 2012 at 3:59 PM by pm100 | Created: Jun 22, 2012 at 1:27 AM by pm100

MarshalJsValue To Array doesnt work

m_arrayMarshllers[typeof(T)] = marshller = Delegate.CreateDelegate( typeof(Func<JsObject, T>), this, ...

Id #6956 | Release: None | Updated: Jun 20, 2012 at 2:54 AM by pm100 | Created: Jun 20, 2012 at 2:52 AM by pm100

NullReferenceException in public T MarshalJsValue<T>(JsInstance value)

Sometimes happens to get a NullReferenceException in method: public T MarshalJsValue<T>(JsInstance value) The problem arises if the "value" parameter is null. A brute workaround could be a ch...

Id #6955 | Release: None | Updated: Jun 15, 2012 at 10:02 AM by starnutoditopo | Created: Jun 15, 2012 at 10:02 AM by starnutoditopo

Multidimensional indexers

Does Jint multidimensional indexers from CLR object? static void Main() { JintEngine je = new JintEngine(); je.Run(@" var test = new JintTest.Test(); test[2,3]; "); } }...

Id #6954 | Release: None | Updated: Jun 10, 2012 at 10:42 AM by cin | Created: Jun 6, 2012 at 6:46 AM by Salia2

JS Array argument for CLR function

namespace JintTest { static class Program { [STAThread] static void Main() { JintEngine je = new JintEngine(); try { je.Run(" ...

Id #6953 | Release: None | Updated: Jun 1, 2012 at 7:13 PM by cin | Created: May 23, 2012 at 1:38 PM by Salia2

Literals should not keep set properties

This should not be possible, that is, this test currently fails in Jint: var str = "a string"; str.prop = "a property"; assert(undefined, str.prop);

Id #6952 | Release: None | Updated: May 25, 2012 at 11:51 PM by cin | Created: May 7, 2012 at 3:06 PM by andersekdahl

Incorrect assert in typeof.js

In typeof.js, there are two asserts that look like this: var opts = Object.prototype.toString; assert('[object Global]',opts.call(undefined)); assert('[object Global]',opts()); The first asse...

Id #6951 | Release: None | Updated: May 3, 2012 at 3:25 PM by cin | Created: May 2, 2012 at 1:33 PM by andersekdahl

Assignment of undeclared variables in strict mode does not throw exception

When you specify Options.Strict, a ReferenceError should be thrown when trying to assign a value to an undeclared variable.

Id #6950 | Release: None | Updated: Apr 30, 2012 at 9:58 AM by andersekdahl | Created: Apr 30, 2012 at 9:58 AM by andersekdahl

this.x = 1 and var x = 1 in the global scope are not the same

I ran into this issue while trying to implement Function.prototype.bind, and it manifests itself like this: This works: this.x = 1; var module1 = { x: 2, getX: function() { return this.x; ...

Id #6949 | Release: None | Updated: Apr 30, 2012 at 8:18 AM by andersekdahl | Created: Apr 27, 2012 at 9:38 AM by andersekdahl

new Date(2012, 0, 1) gives 2011-12-31 23:00:00

First of, many thanks for this fantastic library! I've been playing with it quite alot recently, and we're probably going to use it to embed js as a scripting language in our main application. Wh...

Id #6948 | Release: None | Updated: Apr 27, 2012 at 5:39 AM by andersekdahl | Created: Apr 19, 2012 at 1:58 PM by andersekdahl

Bag with returning System.Threading.Thread to JS

I added a function call asynchronous functions of JS. C# code: engine.SetFunction("Async", new Func<Jint.Native.JsFunction, Thread>(Async)) public Thread Async(Jint.Native.JsFunction func) ...

Id #6947 | Release: None | Updated: Mar 29, 2012 at 5:32 AM by cin | Created: Mar 29, 2012 at 5:24 AM by Salia2

Truthiness is wrong for [], NaN

In Jint, [] is falsy and NaN is truthy. In all other javascript implementations, this is the opposite.

Id #6946 | Release: None | Updated: Mar 18, 2012 at 10:20 PM by cin | Created: Mar 17, 2012 at 8:14 PM by davidkinghorn

undefined + Array Mistake

undefined+[343] gives NaN but should give "undefined343"

Id #6944 | Release: None | Updated: Mar 12, 2012 at 3:11 PM by cin | Created: Feb 18, 2012 at 7:45 PM by fijode

Addition Mistake

true+["8798"] should give "true8798" but gives 2

Id #6942 | Release: None | Updated: Mar 12, 2012 at 3:12 PM by cin | Created: Feb 18, 2012 at 7:32 PM by fijode

NaN.ToString() with wrong casing

I noted, that return NaN+"" will return "nan" but should be "NaN" I hope your'll fix this mistake, soon...

Id #6941 | Release: None | Updated: Mar 12, 2012 at 3:12 PM by cin | Created: Feb 18, 2012 at 3:43 PM by fijode

Cannot call methods in nested classes

Methods of nested classes cannot be executed. This appears to be due to .NET's naming scheme of "Assembly.Class+NestedClass", specifically the plus sign. Using something like "$" in place of "+" fo...

Id #6940 | Release: None | Updated: Feb 5, 2012 at 10:14 PM by Arktronic | Created: Feb 5, 2012 at 10:14 PM by Arktronic

CachedTypeResolver is broken/Fails to create .NET types

The CachedTypeResolver is being asked to cache bogus type names. For example, subsequent calls to ResolveType are being passed as: Sys,prototype Sys,prototypeSys,prototype Sys,prototypeSys,prot...

Id #6939 | Release: None | Updated: Jan 18, 2012 at 12:27 PM by simmotech | Created: Jan 18, 2012 at 12:27 PM by simmotech

Method IsPrototypeOfImpl in JsObjectConstructor caused endles loop

Code of this method // 15.2.4.6 public JsInstance IsPrototypeOfImpl(JsDictionaryObject target, JsInstance[] parameters) { if (target.Class != JsInstance.CLASS_OBJECT) { return Global.Boolean...

Id #6938 | Release: None | Updated: Jan 13, 2012 at 2:23 PM by doterax | Created: Jan 13, 2012 at 2:23 PM by doterax

Extension methods support

It is not possible to call extension methods JavaScript + LINQ would be a beauty

Id #6937 | Release: None | Updated: Mar 23, 2012 at 9:04 AM by Salia2 | Created: Dec 15, 2011 at 10:36 PM by lu4

Date "toGMTString()" method missing

Date class doesn't have the "toGMTString()" method. Workaround: var c = d.toUTCString(); c = c.replace("UTC", "GMT");

Id #6934 | Release: None | Updated: Apr 27, 2012 at 8:07 AM by andersekdahl | Created: Dec 8, 2011 at 12:49 PM by jaks

0.9.0+ no longer works in monotouch

Issue Tracker for the following Discussion http://jint.codeplex.com/discussions/247783

Id #6933 | Release: None | Updated: Feb 10, 2012 at 8:26 PM by StgyianTraveler | Created: Dec 6, 2011 at 1:00 AM by BonnieFoo

Multiline RegExp is broken

The following expression fails: var str = 'one\ntwo\nthree'; var rx = new RegExp('^two$', 'm'); var result = str.match(rx)=='two' ? 'works' : 'broken';

Id #6932 | Release: None | Updated: Mar 26, 2012 at 1:34 PM by cin | Created: Nov 30, 2011 at 8:11 PM by bbeswick

Problem exposing some CLR types to JavaScript

Hi, First of all, congratulations on a great job with Jint. I have compared all of the available JavaScript solutions for .NET and, for me, this is by far the most stable and flexible. I am hav...

Id #6931 | Release: None | Updated: Nov 22, 2011 at 6:06 AM by TimCoulter | Created: Nov 21, 2011 at 5:41 PM by TimCoulter

coercion from javascript functions to .NET delegates

Apologies if this question has been answered before, but I could not find an answer in the docs or the discussions. I registered a function as follows: _engine.SetFunction("Clock", new Func<...

Id #6930 | Release: None | Updated: Mar 27, 2012 at 9:12 AM by cin | Created: Nov 18, 2011 at 2:54 AM by cin

Exception while accessing square-bracket operator.

I have a class overloading the [] operator, and while trying to access it from the script I get a "No matching overload found" exception. Current scenario (XNA Game): class ButtonState { ... ...

Id #6929 | Release: None | Updated: Nov 10, 2011 at 3:19 PM by WoLfulus | Created: Oct 31, 2011 at 6:04 PM by WoLfulus

"Parser error on line 2: Unexpected 'STRING'" running CoffeeScript.compile

I tried to use Jint to run the CoffeeScript compiler, but got a strange error that I have no idea how to troubleshoot. Repro steps: Download version 1.1.2 of coffee-script.js from GitHub, and sa...

Id #6928 | Release: None | Updated: Oct 17, 2011 at 4:49 AM by ip255 | Created: Oct 17, 2011 at 4:49 AM by ip255

how to add the only selected assembly?

how to add the only selected assembly? For example, I want to add System.Net but do not want to be available System.Thread etc.

Id #6927 | Release: None | Updated: Mar 23, 2012 at 9:04 AM by Salia2 | Created: Oct 13, 2011 at 9:18 PM by ASD2003ru

Invalid implementation of substr with one parameter.

Function 'substr' throw exception when called with one parameter. For example 'assert('cd', 'abcd'.substr(2));' The attachment contains patch for this function.

Id #6925 | Release: None | Updated: Oct 9, 2011 at 6:32 AM by SJBukhtiyarov | Created: Oct 8, 2011 at 3:58 PM by SJBukhtiyarov

JintEngine.HasErrors always returns "true"

In case script can be be compiled program is defined. so there seems to be a bug in the return statement... Program program = Compile(script, false); // In case HasErrors() is called multiple ti...

Id #6924 | Release: None | Updated: Sep 16, 2011 at 3:47 PM by sebastienros | Created: Sep 16, 2011 at 8:17 AM by JayLow

Unbound toplevel variables ignored

It appears that no error is thrown for unbound toplevel variables. The JS program just exits silently with no value.

Id #6923 | Release: None | Updated: Sep 15, 2011 at 12:56 AM by charlesrich | Created: Sep 15, 2011 at 12:47 AM by charlesrich

Lexer errors are ignored

Javascript syntax errors (e.g., typos) that cause the text to fail the first, "lexing" stage of parsing are simply ignored, silently... This means, for example, if you type ")(---" in the middle o...

Id #6922 | Release: None | Updated: Sep 15, 2011 at 12:40 AM by charlesrich | Created: Sep 15, 2011 at 12:40 AM by charlesrich

Little problem with Compare/ToPrimitive methods

Hi, I found a little bug in Compare/ToPrimitive methods when using a date object, so i'm reporting to you.. if you run this code: var a = new Date(2011,8,7); var b = 1315346400000; ...

Id #6921 | Release: None | Updated: Mar 12, 2012 at 3:13 PM by cin | Created: Sep 7, 2011 at 1:16 PM by zigo

Problem with milliseconds in JS date

Hi, I found out a little problem with JS date and milliseconds in Jint 0.9.0 If you assign a milliseconds value to a JS date, it's set with a discrepancy of 2 milliseconds. I'm using this unit ...

Id #6918 | Release: None | Updated: Sep 8, 2011 at 1:26 PM by zigo | Created: Aug 22, 2011 at 8:43 AM by zigo

Trouble testing isNaN

Hi. I've tried out Jint for a few hours and finally banged my head against the wall trying to figure out testing a callback from our method. This works: [TestMethod] public void BasicTest...

Id #6916 | Release: None | Updated: Aug 16, 2011 at 5:52 PM by sebastienros | Created: Aug 16, 2011 at 5:50 PM by sebastienros

exception while using C# strings in switch statement

Hello, Is it possible to use C# strings in the switch statement? I got 'A first chance exception of type 'System.NullReferenceException' occurred in Jint.dll' exception while trying to do it. ...

Id #6911 | Release: None | Updated: Oct 8, 2011 at 4:50 PM by SJBukhtiyarov | Created: Aug 12, 2011 at 2:11 PM by pkhach

Exception error description return nothing

When an exception is caught in javascript in the code below, the error message can be retrieved through the local variable in step event handler. But err.description return nothing. ...

Id #6910 | Release: None | Updated: Aug 1, 2011 at 9:36 PM by cin | Created: Aug 1, 2011 at 3:05 PM by zhihongwang

Bug at the Marshaller.MarshalJsFunctionHelper

The AllowClr Property bug: object MarshalJsFunctionHelper(JsFunction func, Type delegateType) { // create independent visitor ExecutionVisitor visitor = new ExecutionVisitor...

Id #6904 | Release: None | Updated: Aug 16, 2011 at 1:27 AM by sebastienros | Created: Jul 7, 2011 at 2:15 AM by aloner

How support import?

var list = new System.Collections.Generic.List{System.Int32}(5); list.Add(1); list.Add(15); for(var i in list) { show(i); } It's long....

Id #6903 | Release: None | Updated: Jun 29, 2011 at 6:25 PM by cin | Created: Jun 25, 2011 at 9:49 AM by aloner

Exposing COM objects

At the moment members (e.g. methods and properties) of COM objects are not accessible to JavaScript code run by Jint, because the standard .NET reflection API does not provide the necessary MethodI...

Id #6900 | Release: None | Updated: Jun 6, 2011 at 11:56 AM by smu01 | Created: May 30, 2011 at 7:47 AM by smu01

undefined and null can be modified

The following code: var x; x.a = "b"; succeeds in Jint but should fail with something like: "Unable to set value of the property 'a': object is null or undefined" ECMAScript doesn't allow ...

Id #6898 | Release: None | Updated: May 18, 2011 at 10:11 PM by pbrenner | Created: May 18, 2011 at 8:58 PM by pbrenner

Clr methods returning void causes NullReferenceException

The ProxyHelper(default branch) emits the following code to methods that return void: // push JsUndefined.Instance code.Emit(OpCodes.Ldnull); code.Emit(OpCodes.Ldfld, typeof(JsUndefined)....

Id #6893 | Release: None | Updated: Mar 26, 2012 at 9:36 AM by cin | Created: Apr 19, 2011 at 4:58 PM by aarrgard

Anonymous types

It doesn't apear to be possible to SetParameter objects that anonymous types. Trying to access members on those objects within JintEngine.Run causes: Jint.JintException : Attempt by method 'Dynam...

Id #6889 | Release: None | Updated: Sep 7, 2012 at 2:43 AM by Chocoboboy | Created: Mar 7, 2011 at 7:41 PM by Hotwoofy

JintEngine Save/Load - serialization error

When trying to save JintEngine state I get a serialization error (below). I was trying to use the Save/Load functionality for quickly cloning an JintEngine instance (because normal creation is slow...

Id #6886 | Release: None | Updated: Jul 3, 2012 at 12:25 PM by Salia2 | Created: Jan 27, 2011 at 8:58 PM by rafal_g

delete Operator is Not Implemented

Please implement the delete operator, which is part of the EMCA-262 (JavaScript 1.2) recommendation. Here is a simple test case that was done with the shell project that comes in the latest source ...

Id #6883 | Release: None | Updated: Jun 25, 2011 at 12:53 PM by aloner | Created: Jan 25, 2011 at 8:07 PM by qbradq

JintEngine.Run(Program, bool) discards root exception when processing catch(Exception e)

In the catch(Exception e) block of JintEngine.Run(), a new JintException() is generated which is: throw new JintException(e.Message + source + stackTrace, e.InnerException); but this throws away '...

Id #6879 | Release: None | Updated: Jan 7, 2011 at 4:56 PM by pbrenner | Created: Jan 7, 2011 at 4:56 PM by pbrenner

Compatibility with .Net4

When compiling Jint for .Net4, we get some error messages caused by conflicting names for the delegates redeclared in JintEngine.cs : Names "Action" and "Func" are conflicting with .Net names from...

Id #6878 | Release: None | Updated: Aug 31, 2011 at 8:29 AM by vgman | Created: Dec 29, 2010 at 10:06 AM by fbirling

Function/variable redeclaration bug, different between same context or between contexts

Hello, This is a three part problem. If one re-declares a function one will not get any warning by the jint engine. The problem gets more complicated when depending on how you execute the code ...

Id #6870 | Release: None | Updated: Nov 4, 2010 at 10:11 AM by rcswer | Created: Nov 4, 2010 at 10:11 AM by rcswer

Returning JavaScript objects to the Clr

It is normally not possible to pass JavaScript objects to the Clr. The only ways to do this are to use the JintEngine.Run(..., false) function, or to use the ExecutionVisitor class directly. In all...

Id #6861 | Release: None | Updated: Aug 31, 2011 at 8:32 AM by vgman | Created: Sep 25, 2010 at 11:52 PM by UFO

Can't operate on System.Type instances (unable to call members from Javascript)

Can't make calls to System.Type members when referenced in Javascript. The exception obtained is a System.TargetException: "Object does not match target type". The problem lies in the CachedRef...

Id #6266 | Release: None | Updated: Mar 26, 2012 at 6:53 PM by cin | Created: Jun 10, 2010 at 12:06 AM by mboisse

Javascript set fields

At the moment, js code interacting with .net classes can only set properties, and not set fields. I think setting fields would be a good idea, and easy to impliment.

Id #6131 | Release: None | Updated: May 17, 2010 at 8:39 PM by Programmdude | Created: May 17, 2010 at 8:39 PM by Programmdude

Classes that implements IEnumerable are not introspected

I have .Net classes implemented in C# that inherits IDictionary. Since IDictionary inherits IEnumerable all the methods and properties are ignored when JsClr class wrapps an instance of these class...

Id #5878 | Release: None | Updated: Apr 17, 2010 at 12:08 PM by DHRobbins | Created: Apr 8, 2010 at 6:41 AM by aarrgard

Overloaded CLR indexers not supported ("Item" property)

When having multiple indexers in a class, Jint just selects the one that happens to come first when enumerating available properties. The proposed patch fixes this by first attempting to let the ru...

Id #5872 | Release: None | Updated: Apr 7, 2010 at 2:45 PM by mka | Created: Apr 7, 2010 at 8:08 AM by mka

Can't use "CallFunction". :\

Okay.. So, I don't know if I'm doing it wrong or what.. But I can't get CallFunction to work.. i have: JintEngine Engine = new JintEngine(); Engine.Run(@"function MyTest(num) { re...

Id #5657 | Release: None | Updated: Aug 31, 2011 at 8:34 AM by vgman | Created: Mar 12, 2010 at 1:20 AM by Deanzo

script re-entrance causes context change

A bit hard to explain, so imagine this case: The host app call a script function with JintEngine.CallFunction() to handle some event, e.g. onClick; Then script function calls some method provided ...

Id #5534 | Release: None | Updated: Sep 26, 2012 at 2:03 AM by hgramsdell | Created: Feb 28, 2010 at 12:49 AM by qrli

Implementing import keyword

I looked up on Google that "import" is a Javascript reserved keyword. Now, even though it isn't an ECMAScript reserved keyword and that is the primary focus of Jint, wouldn't it be practical thoug...

Id #5529 | Release: None | Updated: Sep 25, 2010 at 11:06 PM by UFO | Created: Feb 27, 2010 at 7:31 AM by sebastienros

Local Function Names bug

Javascript allows local function names. i.e. var f = function MyLocalFunctionName() {} This is very good because when you debug in VS2008 it says "MyLocalFunctionName" on the callstack rather than...

Id #4498 | Release: None | Updated: Nov 16, 2009 at 7:46 AM by softer | Created: Oct 26, 2009 at 7:04 PM by softer

  • 1-80 of 80 Work Items
    • Previous
    • 1
    • Next