Skip to content

Commit acbd7f4

Browse files
committed
fix undefined revival (fix vuejs#144)
1 parent d1f0870 commit acbd7f4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/util.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,13 @@ function replacer (key, val) {
5050
}
5151

5252
export function parse (data) {
53-
return CircularJSON.parse(data)
53+
return CircularJSON.parse(data, (k, v) => {
54+
if (v === UNDEFINED) {
55+
return undefined
56+
} else {
57+
return v
58+
}
59+
})
5460
}
5561

5662
/**

0 commit comments

Comments
 (0)