DescriptionRewrite Error.prototype.toString in C++.
This avoids many back-and-forth calls to the runtime.
This also slightly changes the way we avoid getters. Previously, we circumvent getting the name property of ReferenceError, SyntaxError and TypeError due to crbug/69187 (in order to avoid leaking information from those errors through a 'name' getter installed on their prototypes). Now we do that for all errors created by V8.
R=jkummerow@chromium.org, rossberg@chromium.org
BUG=crbug:513472, crbug:69187
LOG=N
Committed: https://crrev.com/2e2765a6ebfdec83188d423c24a786c96c5fa6ed
Cr-Commit-Position: refs/heads/master@{#30105}
Patch Set 1 #Patch Set 2 : add test case #
Total comments: 6
Patch Set 3 : address comments #
Total comments: 1
Patch Set 4 : fix comment typo #Patch Set 5 : fix test case #
Messages
Total messages: 16 (6 generated)
|