diff options
Diffstat (limited to 'src/embind/emval.js')
-rw-r--r-- | src/embind/emval.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/embind/emval.js b/src/embind/emval.js index 72c61196..51c54bc1 100644 --- a/src/embind/emval.js +++ b/src/embind/emval.js @@ -157,15 +157,15 @@ function __emval_new(handle, argCount, argTypes) { __newers[argCount] = newer; } - if (argCount == 0) { + if (argCount === 0) { return newer(handle, argTypes); - } else if (argCount == 1) { + } else if (argCount === 1) { return newer(handle, argTypes, arguments[3]); - } else if (argCount == 2) { + } else if (argCount === 2) { return newer(handle, argTypes, arguments[3], arguments[4]); - } else if (argCount == 3) { + } else if (argCount === 3) { return newer(handle, argTypes, arguments[3], arguments[4], arguments[5]); - } else if (argCount == 4) { + } else if (argCount === 4) { return newer(handle, argTypes, arguments[3], arguments[4], arguments[5], arguments[6]); } else { // This is a slow path! (.apply and .splice are slow), so a few specializations are present above. |