Skip to content

Commit 92f2a79

Browse files
committed
Add proposal-decimal dependency and fix method calls
- Add proposal-decimal to devDependencies - Fix isNaN and isFinite method calls
1 parent de96d0c commit 92f2a79

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

docs/data-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Decimal has a single, quiet NaN value, similar to JS's Number:
2525

2626
```javascript
2727
const nan = new Decimal("NaN");
28-
nan.isNaN; // => true
28+
nan.isNaN(); // => true
2929

3030
// NaN propagates through operations
3131
nan.add(new Decimal("5")); // => NaN
@@ -40,7 +40,7 @@ Positive and negative infinity are supported:
4040
const posInf = new Decimal("Infinity");
4141
const negInf = new Decimal("-Infinity");
4242

43-
posInf.isFinite; // => false
43+
posInf.isFinite(); // => false
4444
posInf.add(new Decimal("1")); // => Infinity
4545
posInf.negate(); // => -Infinity
4646
```

package-lock.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,14 @@
2828
"url": "https://github.com/tc39/proposal-decimal/issues"
2929
},
3030
"homepage": "https://tc39.es/proposal-decimal/",
31-
"dependencies": {
32-
},
3331
"devDependencies": {
3432
"@tc39/ecma262-biblio": "2.1",
3533
"@tc39/ecma402-biblio": "^2.1.1050",
3634
"ecmarkup": "github:jessealama/ecmarkup#permit-decimal-subscript-D",
3735
"marked": "^15.0.12",
3836
"mkdirp": "^3.0.1",
3937
"prettier": "^3.6.2",
40-
"prismjs": "^1.30.0"
38+
"prismjs": "^1.30.0",
39+
"proposal-decimal": "^20250613.0.0"
4140
}
4241
}

0 commit comments

Comments
 (0)