Commit 03f203bd authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[foozzie] Fix Date proxy mocking

Fuzzers after switching to ToT mjsunit.js, which accesses
Date.prototype, while for correctness fuzzing it's mocked out as a
proxy.

This makes the proxy return the property correctly.

TBR=yangguo@chromium.org
NOTRY=true

Bug: chromium:813833
Change-Id: Ic4b6412063f42c4e75905fbd568b7f81bc54daff
Reviewed-on: https://chromium-review.googlesource.com/936046
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51539}
parent 5f0a4422
......@@ -69,6 +69,9 @@ var prettyPrinted = function prettyPrinted(msg) { return msg; };
if (property == "now") {
return mockDateNow;
}
if (property == "prototype") {
return origDate.prototype
}
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment