Skip to content

Commit c76d12d

Browse files
committed
[embind] Fix type in overloadTable error checking. NFC
1 parent 9e37a10 commit c76d12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/embind/embind.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ var LibraryEmbind = {
124124
// We are exposing a function with the same name as an existing function. Create an overload table and a function selector
125125
// that routes between the two.
126126
ensureOverloadTable(Module, name, name);
127-
if (Module.hasOwnProperty(numArguments)) {
127+
if (Module[name].overloadTable.hasOwnProperty(numArguments)) {
128128
throwBindingError(`Cannot register multiple overloads of a function with the same number of arguments (${numArguments})!`);
129129
}
130130
// Add the new function into the overload table.

0 commit comments

Comments
 (0)