use evaluate and compute more consistently
This commit is contained in:
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
importScripts("./lexer.js", "parser.js", "./math.js")
|
||||
|
||||
addEventListener("message", (message) => {
|
||||
if (message.data.command === "compute") {
|
||||
if (message.data.command === "evaluate") {
|
||||
const expr = message.data.expr;
|
||||
const modulus = BigInt(message.data.modulus);
|
||||
const result = evaluate(expr, modulus);
|
||||
Reference in New Issue
Block a user