Skip to content

Commit 75b79ab

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 552,
33
"a.html.gz": 380,
4-
"a.js": 9727,
5-
"a.js.gz": 4295,
4+
"a.js": 9732,
5+
"a.js.gz": 4296,
66
"a.wasm": 7730,
77
"a.wasm.gz": 3507,
8-
"total": 18009,
9-
"total_gz": 8182
8+
"total": 18014,
9+
"total_gz": 8183
1010
}

0 commit comments

Comments
 (0)