Skip to content

Commit

Permalink
handle case where there is no security context provided (#207)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Gardiner <[email protected]>
  • Loading branch information
tagspace and Tom Gardiner authored Jan 23, 2025
1 parent d0c3b8b commit a4ea8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cube.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function hashCode(obj) {
var str = JSON.stringify(obj);
var str = JSON.stringify(obj || {});
var hash = 0, i = 0, len = str.length;
while ( i < len ) {
hash = ((hash << 5) - hash + str.charCodeAt(i++)) << 0;
Expand Down

0 comments on commit a4ea8d6

Please sign in to comment.