forked from Mirror/wren
add() method is bound as static but bindForeignMethod responds to non-static
This commit is contained in:
committed by
GitHub
parent
7612b6bc8c
commit
bcc31e63a2
@ -76,7 +76,7 @@ Something like:
|
||||
{
|
||||
if (strcmp(className, "Math") == 0)
|
||||
{
|
||||
if (!isStatic && strcmp(signature, "add(_,_)") == 0)
|
||||
if (isStatic && strcmp(signature, "add(_,_)") == 0)
|
||||
{
|
||||
return mathAdd; // C function for Math.add(_,_).
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user