gflib.ts: put warning on console when function undefined

This commit is contained in:
John J. Camilleri
2019-06-13 14:43:21 +02:00
parent 498ad572ac
commit 17e3f753fb
3 changed files with 3 additions and 1 deletions

View File

@@ -377,6 +377,7 @@ class GFConcrete {
for (let i in cs) {
if (isUndefined(cs[i])) {
// Some arguments into this function are undefined
console.warn(`${tree.args[i].name} is undefined`)
return [{
fid: -5, // signal to parent that I cannot lin properly
table: [[new SymKS(`[${tree.name}]`).tagWith(tag)]]

View File

@@ -304,6 +304,7 @@ var GFConcrete = (function () {
var key = tree.name;
for (var i in cs_1) {
if (isUndefined(cs_1[i])) {
console.warn(tree.args[i].name + " is undefined");
return [{
fid: -5,
table: [[new SymKS("[" + tree.name + "]").tagWith(tag)]]

File diff suppressed because one or more lines are too long