All 0.28.0 Changes - Bitnodes 4 and 11 and webpack migration

This commit is contained in:
danielyxie
2017-08-30 12:44:29 -05:00
parent 33c10ccc64
commit 7a05d3585a
50 changed files with 47063 additions and 1738 deletions
+5 -3
View File
@@ -17,13 +17,13 @@ function Reviver(key, value) {
ctor = Reviver.constructors[value.ctor] || window[value.ctor];
if (typeof ctor === "function" &&
typeof ctor.fromJSON === "function") {
return ctor.fromJSON(value);
}
}
}
return value;
}
Reviver.constructors = {}; // A list of constructors the smart reviver should know about
Reviver.constructors = {}; // A list of constructors the smart reviver should know about
// A generic "toJSON" function that creates the data expected
// by Reviver.
@@ -67,3 +67,5 @@ function Generic_fromJSON(ctor, data) {
}
return obj;
}
export {Reviver, Generic_toJSON, Generic_fromJSON};