Skip to content

Commit 9fe1e18

Browse files
committed
fixed issue when calling a function with null as argument
1 parent f15bd0a commit 9fe1e18

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3737
- invalid log message triggered when JSON return values are circular
3838
- multiple emitter registration under the same clientId
3939
- issue when loading files that are not ending with ".js"
40+
- issue when calling a remote function with null as part of the arguments
4041

4142
## [3.1.1] - Aug 17 2022
4243

Diff for: browser/vrpc.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: vrpc/VrpcClient.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ class VrpcClient extends EventEmitter {
12251225

12261226
_isEmitter (variable) {
12271227
return (
1228-
typeof variable === 'object' &&
1228+
variable && typeof variable === 'object' &&
12291229
variable.hasOwnProperty('emitter') &&
12301230
variable.hasOwnProperty('event') &&
12311231
typeof variable.emitter === 'object' &&

0 commit comments

Comments
 (0)