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
This attribute can be used to change the C++ function that will be called. It can be used expose functions that have multiple overloads with the same number of parameters:
Example C++ code:
class BindToTest {
public:
int test(const char*) { return 1; }
int test(int) { return 2; }
};
IDL:
interface BindToTest {
void BindToTest();
[BindTo="test"] long testString([Const] DOMString arg);
[BindTo="test"] long testInt(long arg);
};
Now the two overloaded functions can be called from JavaScript.
0 commit comments