DescriptionOptimize JSON stringifying when `replacer` and `space` are falsey.
Most libraries use `JSON.stringify` with all three arguments [1] to allow for
configuration, even if `replacer` and `space` are falsey, causing the
optimized native stringifying to be missed. This commit allows for the common
case where `replacer` and `space` are not used to be fast.
[1]: https://github.com/hapijs/hapi/pull/3014
BUG=v8:4730
LOG=N
R=yangguo@chromium.org
Committed: https://crrev.com/26f617f1bc63e2b28bd9ea5f2146ad3a6b57396f
Cr-Commit-Position: refs/heads/master@{#34174}
Patch Set 1 #Patch Set 2 : Shift checks to bottom of the function. #
Total comments: 1
Patch Set 3 : #Messages
Total messages: 15 (4 generated)
|