load_nasal(): hack around new Nasal bug
This commit is contained in:
parent
77480233a6
commit
d9b5505a39
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ var load_nasal = func(file, module = nil) {
|
|||
var err = [];
|
||||
var code = call(func compile(readfile(file), file), nil, err);
|
||||
if (size(err)) {
|
||||
(func nil)(); # needed to get correct caller results (?!?)
|
||||
(func nil)(); # FIXME hack for Nasal bug #1
|
||||
err[0] ~= " of " ~ file ~ "\n "; # FIXME hack for Nasal bug #2
|
||||
for (var i = 1; (var c = caller(i)) != nil; i += 1)
|
||||
err ~= subvec(c, 2, 2);
|
||||
debug.printerror(err);
|
||||
|
|
Loading…
Add table
Reference in a new issue