V8,运行-tests.py 失败

V8, run-tests.py fails

当我编译 v8 时,遵循 https://github.com/v8/v8/wiki/Building-from-Source 运行-tests.py 失败并显示错误消息:

Error: Failure: expected <11/11/1500>, found <12/10/1500>.
    at fail (/.../v8/v8/test/intl/assert.js:105:9)
    at assertEquals (/.../v8/v8/test/intl/assert.js:114:5)
    at /Users/holmeshe/.../v8/v8/test/intl/date-format/format-test.js:50:1

date-format/format-test.js 中有 2 个错误: 1.在javascript中,月份从0开始, 2.创建日期对象应使用UTC时间。

所以断言应该修改为:

assertEquals('12/11/1500', dtf.format(new Date(Date.UTC(1500,11,11,12,0,0))));

这不属于 Whosebug,我认为...

您可以在 https://bugs.chromium.org/p/v8/issues/list. Note that all tests are passing fine on V8's buildbots 提交错误(而且,我刚刚检查过,也在我的机器上),所以请包括所有可能有助于确定您机器上的不同之处的信息(您对哪个版本进行了修改)退房?在哪个OS?你的机器在哪个时区?还有什么你能想到的吗?)。

如果您有修复建议,请遵循 Contribution Guidelines