pyret-npm 0.0.68 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pyret-lang/build/phaseA/base.jarr +6 -1
- package/pyret-lang/build/phaseA/compiled/table-7067bdbcac8eb8b1b8b3c085cf69f2ad489ed9301ad3076df3ee5881c4bd257f.js +1 -1
- package/pyret-lang/build/phaseA/js/js-numbers.js +5 -0
- package/pyret-lang/build/phaseA/lib-compiled/table-7067bdbcac8eb8b1b8b3c085cf69f2ad489ed9301ad3076df3ee5881c4bd257f-module.js +1 -1
- package/pyret-lang/build/phaseA/lib-compiled/table-7067bdbcac8eb8b1b8b3c085cf69f2ad489ed9301ad3076df3ee5881c4bd257f-static.js +1 -1
- package/pyret-lang/build/phaseA/pyret.jarr +6 -1
package/package.json
CHANGED
|
@@ -39890,6 +39890,11 @@ define("pyret-base/js/js-numbers", function() {
|
|
|
39890
39890
|
if (typeof(n) === 'number') {
|
|
39891
39891
|
return Roughnum.makeInstance(Math.log(n), errbacks);
|
|
39892
39892
|
}
|
|
39893
|
+
if (isRational(n) && !isInteger(n)) {
|
|
39894
|
+
return subtract(log(numerator(n, errbacks), errbacks),
|
|
39895
|
+
log(denominator(n, errbacks), errbacks),
|
|
39896
|
+
errbacks);
|
|
39897
|
+
}
|
|
39893
39898
|
var nFix = n.toFixnum();
|
|
39894
39899
|
if (typeof(nFix) === 'number' && nFix !== Infinity) {
|
|
39895
39900
|
return Roughnum.makeInstance(Math.log(nFix), errbacks);
|
|
@@ -174729,7 +174734,7 @@ return {"staticModules":{"builtin://global":({
|
|
|
174729
174734
|
'row': runtime.makeMethodN(function(self, ...args) {
|
|
174730
174735
|
// NOTE: Deliberately no arity check
|
|
174731
174736
|
if(headers.length !== args.length) {
|
|
174732
|
-
throw runtime.ffi.throwRowLengthMismatch(
|
|
174737
|
+
throw runtime.ffi.throwRowLengthMismatch(headers, args);
|
|
174733
174738
|
}
|
|
174734
174739
|
return makeRow({ headerIndex: headerIndex }, args);
|
|
174735
174740
|
}),
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
'row': runtime.makeMethodN(function(self, ...args) {
|
|
838
838
|
// NOTE: Deliberately no arity check
|
|
839
839
|
if(headers.length !== args.length) {
|
|
840
|
-
throw runtime.ffi.throwRowLengthMismatch(
|
|
840
|
+
throw runtime.ffi.throwRowLengthMismatch(headers, args);
|
|
841
841
|
}
|
|
842
842
|
return makeRow({ headerIndex: headerIndex }, args);
|
|
843
843
|
}),
|
|
@@ -802,6 +802,11 @@ define("pyret-base/js/js-numbers", function() {
|
|
|
802
802
|
if (typeof(n) === 'number') {
|
|
803
803
|
return Roughnum.makeInstance(Math.log(n), errbacks);
|
|
804
804
|
}
|
|
805
|
+
if (isRational(n) && !isInteger(n)) {
|
|
806
|
+
return subtract(log(numerator(n, errbacks), errbacks),
|
|
807
|
+
log(denominator(n, errbacks), errbacks),
|
|
808
|
+
errbacks);
|
|
809
|
+
}
|
|
805
810
|
var nFix = n.toFixnum();
|
|
806
811
|
if (typeof(nFix) === 'number' && nFix !== Infinity) {
|
|
807
812
|
return Roughnum.makeInstance(Math.log(nFix), errbacks);
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
'row': runtime.makeMethodN(function(self, ...args) {
|
|
838
838
|
// NOTE: Deliberately no arity check
|
|
839
839
|
if(headers.length !== args.length) {
|
|
840
|
-
throw runtime.ffi.throwRowLengthMismatch(
|
|
840
|
+
throw runtime.ffi.throwRowLengthMismatch(headers, args);
|
|
841
841
|
}
|
|
842
842
|
return makeRow({ headerIndex: headerIndex }, args);
|
|
843
843
|
}),
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
'row': runtime.makeMethodN(function(self, ...args) {
|
|
838
838
|
// NOTE: Deliberately no arity check
|
|
839
839
|
if(headers.length !== args.length) {
|
|
840
|
-
throw runtime.ffi.throwRowLengthMismatch(
|
|
840
|
+
throw runtime.ffi.throwRowLengthMismatch(headers, args);
|
|
841
841
|
}
|
|
842
842
|
return makeRow({ headerIndex: headerIndex }, args);
|
|
843
843
|
}),
|
|
@@ -39856,6 +39856,11 @@ define("pyret-base/js/js-numbers", function() {
|
|
|
39856
39856
|
if (typeof(n) === 'number') {
|
|
39857
39857
|
return Roughnum.makeInstance(Math.log(n), errbacks);
|
|
39858
39858
|
}
|
|
39859
|
+
if (isRational(n) && !isInteger(n)) {
|
|
39860
|
+
return subtract(log(numerator(n, errbacks), errbacks),
|
|
39861
|
+
log(denominator(n, errbacks), errbacks),
|
|
39862
|
+
errbacks);
|
|
39863
|
+
}
|
|
39859
39864
|
var nFix = n.toFixnum();
|
|
39860
39865
|
if (typeof(nFix) === 'number' && nFix !== Infinity) {
|
|
39861
39866
|
return Roughnum.makeInstance(Math.log(nFix), errbacks);
|
|
@@ -174695,7 +174700,7 @@ return {"staticModules":{"builtin://global":({
|
|
|
174695
174700
|
'row': runtime.makeMethodN(function(self, ...args) {
|
|
174696
174701
|
// NOTE: Deliberately no arity check
|
|
174697
174702
|
if(headers.length !== args.length) {
|
|
174698
|
-
throw runtime.ffi.throwRowLengthMismatch(
|
|
174703
|
+
throw runtime.ffi.throwRowLengthMismatch(headers, args);
|
|
174699
174704
|
}
|
|
174700
174705
|
return makeRow({ headerIndex: headerIndex }, args);
|
|
174701
174706
|
}),
|