/// <inheritdoc/> public T GetExportedValue <T>(string name) { return(_scope.Run(() => { if (null == _exports) { if (!Module.HasValue("exports")) { return default(T); } var exports = Module.GetValue("exports"); _exports = new JsBinding(_scope, _binder, _interop, exports); } return _exports.GetValue <T>(name); })); }
/// <summary> /// Gets a raw <see cref="JavaScriptValue"/> from the global object/scope. /// </summary> public JavaScriptValue GetValue(string name) { return(_scope.Run(() => _global.GetValue(name))); }