We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e37a10 commit c76d12dCopy full SHA for c76d12d
src/embind/embind.js
@@ -124,7 +124,7 @@ var LibraryEmbind = {
124
// We are exposing a function with the same name as an existing function. Create an overload table and a function selector
125
// that routes between the two.
126
ensureOverloadTable(Module, name, name);
127
- if (Module.hasOwnProperty(numArguments)) {
+ if (Module[name].overloadTable.hasOwnProperty(numArguments)) {
128
throwBindingError(`Cannot register multiple overloads of a function with the same number of arguments (${numArguments})!`);
129
}
130
// Add the new function into the overload table.
0 commit comments