Skip to content

Commit

Permalink
Set default for rpcError (#1322)
Browse files Browse the repository at this point in the history
* Set default for rpcError

* Empty string default

* Empty string on default

* Revert "" to null

Co-authored-by: Brian Broll <brian.broll@gmail.com>
  • Loading branch information
gsteinLTU and brollb authored Aug 17, 2022
1 parent ade37a8 commit ca3d48a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/objects-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ SpriteMorph.prototype.reportRPCError = function () {
return this.parentThatIsA(StageMorph).rpcError;
};

StageMorph.prototype.rpcError = null;

StageMorph.prototype.reportRPCError = function () {
return this.rpcError;
};
Expand Down

0 comments on commit ca3d48a

Please sign in to comment.