• Michael Achenbach's avatar
    [foozzie] Properly mock out Date · bf84d924
    Michael Achenbach authored
    The old proxy only mocked out constructor calls and didn't intercept function application. It also kept the original constructor property, through which non-mocked dates could be constructed again.
    
    BUG=chromium:697870
    NOTRY=true
    R=mstarzinger@chromium.org,yangguo@chromium.org
    
    Change-Id: Icb4ef22342424f95463a7a9c57fa0bb8d910ac19
    Reviewed-on: https://chromium-review.googlesource.com/448564Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Michael Achenbach <machenbach@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#43569}
    bf84d924
v8_mock.js 3.07 KB