UNPKG

431 BJavaScriptView Raw
1import { newInvariantError } from "../../utilities/globals/index.js";
2export var serializeFetchParameter = function (p, label) {
3 var serialized;
4 try {
5 serialized = JSON.stringify(p);
6 }
7 catch (e) {
8 var parseError = newInvariantError(40, label, e.message);
9 parseError.parseError = e;
10 throw parseError;
11 }
12 return serialized;
13};
14//# sourceMappingURL=serializeFetchParameter.js.map
\No newline at end of file