fix sleeve memory bug

This commit is contained in:
Olivier Gagnon
2021-09-08 23:47:34 -04:00
parent bada8a5f39
commit 2a13db39c7
360 changed files with 5424 additions and 15764 deletions
+2 -8
View File
@@ -8,17 +8,11 @@
function Reviver(key, value) {
var ctor;
if (value == null) {
console.log(
"Reviver WRONGLY called with key: " + key + ", and value: " + value,
);
console.log("Reviver WRONGLY called with key: " + key + ", and value: " + value);
return 0;
}
if (
typeof value === "object" &&
typeof value.ctor === "string" &&
typeof value.data !== "undefined"
) {
if (typeof value === "object" && typeof value.ctor === "string" && typeof value.data !== "undefined") {
// Compatibility for version v0.43.1
// TODO Remove this eventually
if (value.ctor === "AllServersMap") {