Skip to content

Extension method is supported? #56

Answered by ackava
ZverGuy asked this question in Q&A
Discussion options

You must be logged in to vote

You can add method in Object.prototype...

To do it in C# you can do following,

    var m = new JSModuleContext( ... );
    m["Object"]["prototype"]["extensionMethod"] = new JSFunction((in Arguments a) => {
          return JSUndefined.Value;
    });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ZverGuy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants