DescriptionCheck CallSite arguments more rigorously
Before, it was possible to construct invalid CallSite objects, which
would trigger a runtime assert when any function is called on it.
This check ensures to throw a TypeError when invalid information is
passed to the CallSite constructor.
This reverts part of this CL: https://codereview.chromium.org/2006603002
R=ishell@chromium.org, titzer@chromium.org, yangguo@chromium.org
BUG=chromium:614295
Committed: https://crrev.com/25c2203a8f1553ac79deed299ff66830d4d9ec0e
Cr-Commit-Position: refs/heads/master@{#36578}
Patch Set 1 #Patch Set 2 : remove unneeded cast #
Total comments: 2
Patch Set 3 : rebase #Patch Set 4 : add regression test case #
Messages
Total messages: 13 (5 generated)
|