mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
remove test for abandon ecma402/pull/345 (#2368)
https://github.com/tc39/ecma402/pull/345
This commit is contained in:
parent
ce2dfd49d1
commit
0213936e95
@ -1,24 +0,0 @@
|
|||||||
// Copyright 2019 Google Inc. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
esid: sec-initializedatetimeformat
|
|
||||||
description: Checks the propagation of exceptions from the options for the DateTimeFormat constructor.
|
|
||||||
features: [Intl.DateTimeFormat-quarter]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
function CustomError() {}
|
|
||||||
|
|
||||||
const options = [
|
|
||||||
"quarter",
|
|
||||||
];
|
|
||||||
|
|
||||||
for (const option of options) {
|
|
||||||
assert.throws(CustomError, () => {
|
|
||||||
new Intl.DateTimeFormat("en", {
|
|
||||||
get [option]() {
|
|
||||||
throw new CustomError();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}, `Exception from ${option} getter should be propagated`);
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user