Skip to content

Commit fba0af3

Browse files
authored
refactor: use a function wrapper for native binding
PR-URL: #13002 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 7b03f88 commit fba0af3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/stats/base/dists/bradford/median/lib

lib/node_modules/@stdlib/stats/base/dists/bradford/median/lib/native.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ var addon = require( './../src/addon.node' );
5656
* var v = median( NaN );
5757
* // returns NaN
5858
*/
59-
var median = addon;
59+
function median( c ) {
60+
return addon( c );
61+
}
6062

6163

6264
// EXPORTS //

0 commit comments

Comments
 (0)