WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 0dbff21

Browse files
committed
fix: add fii_f NAPI dependency to manifest.json
1 parent b196c75 commit 0dbff21

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/node_modules/@stdlib/math/base/special/truncbf/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ bench( pkg+'::built-in', function benchmark( b ) {
5858
b.tic();
5959
for ( i = 0; i < b.iterations; i++ ) {
6060
x = (randu() * 100.0) - 50.0;
61-
y = trunc( x * 100 ) / 100;
61+
// Use Math.trunc instead of just trunc:
62+
y = Math.trunc( x * 100.0 ) / 100.0;
6263
if ( isnanf( y ) ) {
6364
b.fail( 'should not return NaN' );
6465
}

lib/node_modules/@stdlib/math/base/special/truncbf/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dependencies": {
3838
"@stdlib/math/base/assert/is-infinitef": "^0.2.2",
3939
"@stdlib/math/base/assert/is-nanf": "^0.2.2",
40-
"@stdlib/math/base/napi/ternary/fii_f": "^0.2.2",
40+
"@stdlib/math/base/napi/ternary": "^0.2.2",
4141
"@stdlib/math/base/special/pow": "^0.2.2",
4242
"@stdlib/math/base/special/powf": "^0.2.2",
4343
"@stdlib/math/base/special/trunc": "^0.2.2",
@@ -253,4 +253,4 @@
253253
}
254254
}
255255
}
256-
}
256+
}

0 commit comments

Comments
 (0)