mirror of https://github.com/tc39/test262.git
18 lines
505 B
JavaScript
18 lines
505 B
JavaScript
// Copyright 2021 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
esid: sec-initializenumberformat
|
|
description: >
|
|
Exception from accessing the "roundingPriority" option for the NumberFormat
|
|
constructor should be propagated to the caller
|
|
features: [Intl.NumberFormat-v3]
|
|
---*/
|
|
|
|
assert.throws(Test262Error, function() {
|
|
new Intl.NumberFormat('en', {
|
|
get roundingPriority() {
|
|
throw new Test262Error();
|
|
}
|
|
});
|
|
});
|