Chromium Code Reviews
DescriptionAdded more typechecking functions and unit tests for existing code.
This change alters the functionality of getObjectAttr slightly: it no
longer accepts null or Array objects as "object" values. I made this
change because the type checking code seems designed to mirror the
semantics of JSON, where each value belongs to exactly one of the
following categories: array, boolean, number, null, object, or string.
This change also changes the type of values thrown from strings to Error objects so that there are more likely to be useful stack traces when an error occurs.
BUG=
Committed: https://crrev.com/b814ba0d3921aaf296ebe1b653ab2827f671a7dd
Cr-Commit-Position: refs/heads/master@{#321415}
Patch Set 1 #Patch Set 2 : #
Total comments: 12
Patch Set 3 : #
Total comments: 5
Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Messages
Total messages: 24 (10 generated)
|