Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: V8 Iterators

$
0
0
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?

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>