c#: foreach (var match in new JsRegExp(@"expression...").exec(str)) {}
js: ar $it34 = new RegExp("expression...").exec(str).GetEnumerator(); //wrong
JsRegExpResult inherits from JsArray<String>: public class JsRegExpResult :
JsArray<JsString>
And this is the signature of JsArray<T>:
[JsType(JsMode.Prototype, Name = "Array", NativeEnumerator = false, Export = false, IgnoreGenericTypeArguments = true, NativeArrayEnumerator = true, NativeCasts = true)]
public class JsArray<T> : IJsArrayEnumerable<T>, IEnumerable<T>, IEnumerable
This means, JsRegExpResult should user native indexer, not callig
GetEnumerator(wich doesnt exists)
Original issue reported on code.google.com by DanelK...@gmail.com on 14 Aug 2012 at 2:57
Original issue reported on code.google.com by
DanelK...@gmail.com
on 14 Aug 2012 at 2:57