This commit is contained in:
Jade (Rose) Rowland 2025-09-16 11:36:21 -04:00
parent 4cc453c640
commit 9cdba1a50e
3 changed files with 5 additions and 5 deletions

View file

@ -6,6 +6,7 @@ This program is free software: you can redistribute it and/or modify it under th
import TimeSpan from './timespan.mjs';
import Fraction, { lcm } from './fraction.mjs';
import FractionClass from 'fraction.js';
import Hap from './hap.mjs';
import State from './state.mjs';
import { unionWithObj } from './value.mjs';
@ -26,6 +27,7 @@ import {
} from './util.mjs';
import drawLine from './drawLine.mjs';
import { logger } from './logger.mjs';
import fraction from './fraction.mjs';
let stringParser;
@ -999,7 +1001,7 @@ addToPrototype('weaveWith', function (t, ...funcs) {
// compose matrix functions
function _nonArrayObject(x) {
return !Array.isArray(x) && typeof x === 'object';
return !Array.isArray(x) && typeof x === 'object' && !(x instanceof FractionClass);
}
function _composeOp(a, b, func) {
if (_nonArrayObject(a) || _nonArrayObject(b)) {