Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: test/test262/local-tests/test/intl402/NumberFormat/fraction-digit-options-read-once.js

Issue 2717773002: [test262] skip two Intl.NumberFormat tests (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/test262/local-tests/test/intl402/NumberFormat/fraction-digit-options-read-once.js
diff --git a/test/test262/local-tests/test/intl402/NumberFormat/fraction-digit-options-read-once.js b/test/test262/local-tests/test/intl402/NumberFormat/fraction-digit-options-read-once.js
new file mode 100644
index 0000000000000000000000000000000000000000..e7e37b873503fcc6c6eaab0d5fa1b274fac40483
--- /dev/null
+++ b/test/test262/local-tests/test/intl402/NumberFormat/fraction-digit-options-read-once.js
@@ -0,0 +1,18 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+esid: ECMA-402 #sec-setnfdigitoptions
+description: >
+ The maximum and minimum fraction digits properties should be read from
+ the options bag exactly once from the NumberFormat constructor.
+ Regression test for https://bugs.chromium.org/p/v8/issues/detail?id=6015
+include: [assert.js]
+---*/
+
+var minCounter = 0;
+var maxCounter = 0;
+new Intl.NumberFormat("en", { get minimumFractionDigits() { minCounter++ },
+ get maximumFractionDigits() { maxCounter++ } });
+assert.sameValue(1, minCounter);
+assert.sameValue(1, maxCounter);

Powered by Google App Engine
This is Rietveld 408576698