Browse Source

Fix: Error description function not found

master
Jordi Baylina 4 years ago
parent
commit
923b19c414
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
4 changed files with 4 additions and 7 deletions
  1. +3
    -3
      package-lock.json
  2. +0
    -1
      ports/c/builder.js
  3. +0
    -2
      ports/wasm/builder.js
  4. +1
    -1
      src/construction_phase.js

+ 3
- 3
package-lock.json

@ -576,9 +576,9 @@
"dev": true
},
"fastfile": {
"version": "0.0.9",
"resolved": "https://registry.npmjs.org/fastfile/-/fastfile-0.0.9.tgz",
"integrity": "sha512-njh6lH2SJiS0u0JofJQf2YfEOSgGfbYPtmFnpEXXy6OilWoX1wGw3klaSKIwhq8+E5MqYpqJXMiaqmptaU2wig=="
"version": "0.0.12",
"resolved": "https://registry.npmjs.org/fastfile/-/fastfile-0.0.12.tgz",
"integrity": "sha512-0EZo2y5eW8X0oiDDRvcnufjVxlM96CQL5hvmRQtbRABWlCkH73IHwkzl0qOSdxtchaMr+0TSB7GVqaVEixRr1Q=="
},
"ffiasm": {
"version": "0.0.2",

+ 0
- 1
ports/c/builder.js

@ -1,4 +1,3 @@
const streamFromMultiArray = require("../../src/streamfromarray_txt.js");
const utils = require("../../src/utils");
const assert = require("assert");
const Scalar = require("ffjavascript").Scalar;

+ 0
- 2
ports/wasm/builder.js

@ -1,5 +1,3 @@
const streamFromArrayTxt = require("../../src/streamfromarray_txt");
const streamFromArrayBin = require("../../src/streamfromarray_bin");
const assert = require("assert");
const ModuleBuilder = require("wasmbuilder").ModuleBuilder;
const ModuleBuilderWat = require("wasmbuilder").ModuleBuilderWat;

+ 1
- 1
src/construction_phase.js

@ -574,7 +574,7 @@ function execFunctionCall(ctx, ast) {
const fnc = ctx.functions[ast.name];
if (!fnc) return ctx.throwError("Function not defined");
if (!fnc) return ctx.throwError(ast, "Function not defined");
const paramValues = [];
for (let i=0; i< ast.params.length; i++) {

Loading…
Cancel
Save