Skip to content

Commit 0fb0479

Browse files
Wrap an assert() in #if ASSERTIONS (#19719)
1 parent c25d266 commit 0fb0479

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/embind/embind.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,9 @@ var LibraryEmbind = {
20982098
invoker,
20992099
rawConstructor
21002100
) {
2101+
#if ASSERTIONS
21012102
assert(argCount > 0);
2103+
#endif
21022104
var rawArgTypes = heap32VectorToArray(argCount, rawArgTypesAddr);
21032105
invoker = embind__requireFunction(invokerSignature, invoker);
21042106
var args = [rawConstructor];

0 commit comments

Comments
 (0)