Taritsyn / JavaScriptEngineSwitcher

JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines. This library allows you to quickly and easily switch to using of another JavaScript engine.
Apache License 2.0
439 stars 49 forks source link

Support for SetVariableValue passing in array and/or js objects? #70

Closed bnowlin closed 5 years ago

Taritsyn commented 5 years ago

Hello, Brett!

Simple classes (or structures) and delegates can be passed using the EmbedHostObject method. Unfortunately, working with collections is not yet supported. But for now, you can use JSON serialization (see an example implementation of TypeScript compiler or Autoprefixer).

Types can be passed using the EmbedHostType method.

bnowlin commented 5 years ago

Thank you for the examples.

The difference methods confused me as I was expecting the interface to mirror JS.