Skip to content

Commit ce2274d

Browse files
jakecastelliRafaelGSS
authored andcommitted
test: add test for frame count being 0.5
The frame count is between 1 and 200. Testing 0.5 will be testing decimal fraction truncation to 0 which is still invalid range. PR-URL: #57732 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9d2a09d commit ce2274d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-util-getcallsites.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ const assert = require('node:assert');
4747
}, common.expectsError({
4848
code: 'ERR_OUT_OF_RANGE'
4949
}));
50+
assert.throws(() => {
51+
getCallSites(0.5);
52+
}, common.expectsError({
53+
code: 'ERR_OUT_OF_RANGE'
54+
}));
5055
assert.throws(() => {
5156
getCallSites(-1);
5257
}, common.expectsError({

0 commit comments

Comments
 (0)