Skip to content

Commit

Permalink
Stop special-casing functions
Browse files Browse the repository at this point in the history
Signed-off-by: Evangelos Lamprou <vagos@lamprou.xyz>
  • Loading branch information
vagos committed Nov 11, 2024
1 parent 8878890 commit f3e379d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ module.exports = function serialize(obj, options) {
}

var fn = functions[valueIndex];
if (type === 'F') {
var fn = functions[valueIndex];
return serializeFunc(fn);
}

return serializeFunc(fn);
return '';
});
}

0 comments on commit f3e379d

Please sign in to comment.