Skip to content

Commit 8606db2

Browse files
committed
ensure numerator() calls get errbacks
1 parent 4e104da commit 8606db2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/base/js-numbers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,11 +1077,11 @@ define("pyret-base/js/js-numbers", function() {
10771077
options = options || {};
10781078
return (function(m, n, errbacks) {
10791079
if (m instanceof Rational) {
1080-
m = numerator(m);
1080+
m = numerator(m, errbacks);
10811081
}
10821082

10831083
if (n instanceof Rational) {
1084-
n = numerator(n);
1084+
n = numerator(n, errbacks);
10851085
}
10861086

10871087
if (typeof(m) === 'number' && typeof(n) === 'number') {
@@ -1109,7 +1109,7 @@ define("pyret-base/js/js-numbers", function() {
11091109
options = options || {};
11101110
return (function(m, errbacks) {
11111111
if (m instanceof Rational) {
1112-
m = numerator(m);
1112+
m = numerator(m, errbacks);
11131113
}
11141114

11151115
if (typeof(m) === 'number') {

0 commit comments

Comments
 (0)