Can't check if a JsValue is a function · sebastienros/jint · Discussion #2338 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

I'm using Jint 4.6.3 with .NET 8.0

I'm trying to check if a JsValue is a function (ICallable) but it doesn't seems possible.
ICallable has been internalized in commit ceee6b2
And there is also a property IsCallable in the JsValue class but also internal

internal virtual bool IsCallable => this is ICallable;

How am I supposed to check if a JsValue is a function/ICallable?

You must be logged in to vote

You must be logged in to vote

0 replies

Answer selected by lahma

2 participants

@Piripe @lahma

This discussion was converted from issue #2335 on March 19, 2026 16:36.

Heading

Bold

Italic

Quote

Code

Link


Numbered list

Unordered list

Task list


Attach files

Mention

Reference

Menu

Select a reply

Loading

Uh oh!

There was an error while loading. Please reload this page.

Create a new saved reply

👍 1 reacted with thumbs up emoji 👎 1 reacted with thumbs down emoji 😄 1 reacted with laugh emoji 🎉 1 reacted with hooray emoji 😕 1 reacted with confused emoji ❤️ 1 reacted with heart emoji 🚀 1 reacted with rocket emoji 👀 1 reacted with eyes emoji