It would be great if .NET objects exposed to V8 could provide ECMA Script 6 Iterator functionality.
In order to achieve this, they would have to have a Symbol.iterator property when seen from V8.
I would like to patch ClearScript in order to achieve this. Approach: Introduce some attribute (e.g. V8Iterator) to indicate which method of the .NET class should become the Symbol.iterator property. When the V8 object is built, the property is added.
Now I looked at the ClearScript sources, but I had to realize that I do not understand the mechanism how the V8 object is built.
Where exactly is the reflection on the .NET object done?
In order to achieve this, they would have to have a Symbol.iterator property when seen from V8.
I would like to patch ClearScript in order to achieve this. Approach: Introduce some attribute (e.g. V8Iterator) to indicate which method of the .NET class should become the Symbol.iterator property. When the V8 object is built, the property is added.
Now I looked at the ClearScript sources, but I had to realize that I do not understand the mechanism how the V8 object is built.
Where exactly is the reflection on the .NET object done?