wang2lang opened this issue 7 years ago · 3 comments
var obj = { foo (a, b) { }, bar (x, y) {}, *quux (x, y) {} } var serializedObj = serialize(obj) deserialize(serializedObj) // will got Uncaught SyntaxError
Sure, patch welcome.
@okuryu I've sent pr with patch. Check it please
Fixed in #39, and published serialize-javascript@1.6.0. Thanks!
serialize-javascript@1.6.0