You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately V8's typeof implementation returns "function" for all objects that are callable, which currently includes all host objects. We've discussed this with the V8 team here.
Many host objects are indeed callable, or potentially callable (delegates, host types, dynamic objects, "tear-off" methods, etc.), and will therefore always return "function". It might be possible to discern non-callable host objects and instantiate them through a dedicated non-callable template. We'll take a look.
…xed VB.NET access to nonexistent JavaScript properties (GitHub Issue #47, Take 2); fixed script object serialization via Json.NET (GitHub Issue #60); added host item invocability assessment and patched V8's typeof implementation to return "object" for all non-delegate host objects (GitHub Issue #62); added DocumentInfo and related APIs to address GitHub Issue #46; fixed property bag invocation; updated deployment and API documentation. Tested with V8 6.8.275.28.
In Version 5.5.3, only delegates (and a few other special kinds of host objects) return "function" for typeof. The operator returns "object" for all other host objects.
Is there a way to change typeof [HostObject] to return 'object' instead of 'function' .
The text was updated successfully, but these errors were encountered: