yahoo/serialize-javascript

Not support for Enhanced Object Literals

wang2lang opened this issue · 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!