ScriptValueSerializer should throw, not crash, when handling unknown types
JavaScript Symbols are a new (in ES2015) primitive type. This caused ScriptValueSerializer to go off the rails when it had exhausted its known list of primitives and then assumed anything else might be an object. Now the code checks for Object-ness before assuming it. Also refactored the if/else-if cascade to group all Object handling together, and prune dead branches. BUG=522227 Review URL: https://codereview.chromium.org/1297223004 git-svn-id: svn://svn.chromium.org/blink/trunk@200874 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment