Skip to content

Commit

Permalink
format nodes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinb-khan committed Oct 13, 2024
1 parent c230e64 commit fab2a7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/kas/src/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Expr {
}

// an abstraction for chainable, bottom-up recursion
recurse (method, ...passed) {
recurse(method, ...passed) {
var args = _.map(this.args(), function (arg) {
return _.isString(arg) ? arg : arg[method].apply(arg, passed);
});
Expand All @@ -114,7 +114,7 @@ class Expr {
return abstract();
}

compile () {
compile() {
var code = this.codegen();
try {
return new Function("vars", "return " + code + ";");
Expand Down Expand Up @@ -2109,7 +2109,7 @@ export class Log extends Expr {
log = log.addHint("open");
}
return log;
};
}
}

/* trigonometric functions */
Expand Down Expand Up @@ -3368,7 +3368,7 @@ export class Int extends Rational {

/* float (n: number) */
export class Float extends Num {
constructor (number) {
constructor(number) {
super();
this.n = number;
}
Expand Down

0 comments on commit fab2a7c

Please sign in to comment.