Commit efcf883e authored by Adam Klein's avatar Adam Klein Committed by Commit Bot

Skip debug evaluate testing of Date.prototype.toLocale* on noi18n builds

TBR=yangguo@chromium.org

Change-Id: Iaed993ed1a61003e35bb40d1f9e0d78864979b2c
Reviewed-on: https://chromium-review.googlesource.com/459443Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44127}
parent ba40bf7a
......@@ -29,8 +29,11 @@ function listener(event, exec_state, event_data, data) {
success(undefined, `Date.parse(1)`);
for (f of Object.getOwnPropertyNames(Date.prototype)) {
if (typeof Date.prototype[f] === "function") {
if (f.startsWith("set") || f.startsWith("toLocale")) {
if (f.startsWith("set")) {
fail(`date.${f}(5);`, true);
} else if (f.startsWith("toLocale")) {
if (typeof Intl === "undefined") continue;
fail(`date.${f}();`, true);
} else {
success(undefined, `date.${f}();`, true);
}
......
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