Skip to content

Commit 8a412bb

Browse files
committed
[GR-62611] Number.prototype.toFixed accepts up to 100 fraction digits.
PullRequest: js/3439
2 parents 3bfe834 + 8b7ae1e commit 8a412bb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

graal-js/src/com.oracle.truffle.js.runtime.doubleconv/src/com/oracle/truffle/js/runtime/doubleconv/DoubleConversion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -84,7 +84,7 @@ private DoubleConversion() {
8484
}
8585

8686
private static final int kMaxFixedDigitsBeforePoint = 60;
87-
private static final int kMaxFixedDigitsAfterPoint = 60;
87+
private static final int kMaxFixedDigitsAfterPoint = 100;
8888
private static final int kMaxExponentialDigits = 120;
8989
private static final int kBase10MaximalLength = 17;
9090

graal-js/test/test262.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3851,10 +3851,6 @@
38513851
"filePath" : "staging/sm/misc/new-with-non-constructor.js",
38523852
"status" : "FAIL",
38533853
"comment" : "new failures 2025-01-23"
3854-
}, {
3855-
"filePath" : "staging/sm/Number/toFixed-values.js",
3856-
"status" : "FAIL",
3857-
"comment" : "new failures 2025-01-23"
38583854
}, {
38593855
"filePath" : "staging/sm/Reflect/construct.js",
38603856
"status" : "FAIL",

0 commit comments

Comments
 (0)