mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
gflib.ts: put warning on console when function undefined
This commit is contained in:
@@ -377,6 +377,7 @@ class GFConcrete {
|
|||||||
for (let i in cs) {
|
for (let i in cs) {
|
||||||
if (isUndefined(cs[i])) {
|
if (isUndefined(cs[i])) {
|
||||||
// Some arguments into this function are undefined
|
// Some arguments into this function are undefined
|
||||||
|
console.warn(`${tree.args[i].name} is undefined`)
|
||||||
return [{
|
return [{
|
||||||
fid: -5, // signal to parent that I cannot lin properly
|
fid: -5, // signal to parent that I cannot lin properly
|
||||||
table: [[new SymKS(`[${tree.name}]`).tagWith(tag)]]
|
table: [[new SymKS(`[${tree.name}]`).tagWith(tag)]]
|
||||||
|
|||||||
@@ -304,6 +304,7 @@ var GFConcrete = (function () {
|
|||||||
var key = tree.name;
|
var key = tree.name;
|
||||||
for (var i in cs_1) {
|
for (var i in cs_1) {
|
||||||
if (isUndefined(cs_1[i])) {
|
if (isUndefined(cs_1[i])) {
|
||||||
|
console.warn(tree.args[i].name + " is undefined");
|
||||||
return [{
|
return [{
|
||||||
fid: -5,
|
fid: -5,
|
||||||
table: [[new SymKS("[" + tree.name + "]").tagWith(tag)]]
|
table: [[new SymKS("[" + tree.name + "]").tagWith(tag)]]
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user