Variant support in chakracore-delphi

The new experimental/variants branch of chakracore-delphi introduces some experimental support for Variants.
It’s now possible to write code similar to the following:

The example above is using Javascript built-in JSON object and its methods: parse and stringify.

On Windows, it’s possible to expose an Automation object to your script, using late (IDispatch) binding. An example of this is shown in the new WmiSample demo:

and its output:

For more example code, you can also check out the associated tests.

Leave a Reply

Your email address will not be published.