dfa3dfa3b5
All marked as FAIL at this stage. Bug: v8:11544 Change-Id: I6e4346a57aa3df054d2ef5bd353544fba7fd855b Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3044350 Commit-Queue: Frank Tang <ftang@chromium.org> Reviewed-by: Shu-yu Guo <syg@chromium.org> Cr-Commit-Position: refs/heads/master@{#76211}
24 lines
621 B
JavaScript
24 lines
621 B
JavaScript
// Copyright 2021 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
// Flags: --harmony-temporal
|
|
|
|
// https://tc39.es/proposal-temporal/#sec-temporal.calendar.prototype.fields
|
|
let cal = new Temporal.Calendar("iso8601")
|
|
|
|
assertEquals("iso8601", cal.id)
|
|
|
|
const fields = {
|
|
*[Symbol.iterator]() {
|
|
let i = 0;
|
|
while (i++ < 1000) {
|
|
yield "year";
|
|
}
|
|
}
|
|
}
|
|
|
|
let expected = Array.from(fields);
|
|
// For now, we only input it as array
|
|
let inpiut = expected;
|
|
assertArrayEquals(expected, cal.fields(expected));
|