Andrew Stopford wrote:

Hi,

I would be interested in helping out on this, who else would like to
help out?

Is there a central place where development is going to take place?
(I attached a small patch, since it didn't work 'out of the box' for me).
---
Jeroen Janssen

diff -u -r src2/JObjects.cs src/JObjects.cs
--- src2/JObjects.cs    2001-10-18 03:16:46.000000000 +0200
+++ src/JObjects.cs     2003-01-04 00:11:36.000000000 +0100
@@ -1004,7 +1004,7 @@
        // If the given string is an ECMAScript numerical array index, fill in
        // arrayIndex and return true.  Otherwise set arrayIndex to 0 and return
        // false.
-       private bool IsArrayIndex(string propName, out UInt32 arrayIndex)
+       public bool IsArrayIndex(string propName, out UInt32 arrayIndex)
                {
                arrayIndex = 0;
                
diff -u -r src2/JRuntime.cs src/JRuntime.cs
--- src2/JRuntime.cs    2003-01-04 00:13:50.000000000 +0100
+++ src/JRuntime.cs     2003-01-04 00:13:20.000000000 +0100
@@ -220,7 +220,7 @@
                if (!members.ContainsKey(name))
                        {
                        UInt32 arrayIndex;
-                       if ( !useStatic_ && JArrayObject.IsArrayIndex(name, out 
arrayIndex) &&
+                       if ( !useStatic_ && ((JArrayObject)target).IsArrayIndex(name, 
+out arrayIndex) &&
                                  targetType_.IsArray )
                                {
                                return InvokeMethod(target, "GetValue", new 
object[]{arrayIndex});
Only in src: test.cs

Reply via email to