Skip to content
Snippets Groups Projects
Commit 774127e3 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use a different variable name (libname) to not clobber the lib variable

Fix to Nelgin's reported error:
line 199: TypeError: lib.parse is not a function
parent aa1b6226
No related branches found
No related tags found
No related merge requests found
......@@ -77,13 +77,13 @@ for(var i = 0; i < argc; i++) {
continue;
}
if(opt.indexOf("lib=") == 0) {
var lib = opt.slice(4);
if(!file_area.lib[lib]) {
alert("Library not found: " + lib);
var libname = opt.slice(4);
if(!file_area.lib[libname]) {
alert("Library not found: " + libname);
exit(1);
}
for(var j = 0; j < file_area.lib[lib].dir_list.length; j++)
dir_list.push(file_area.lib[lib].dir_list[j].code);
for(var j = 0; j < file_area.lib[libname].dir_list.length; j++)
dir_list.push(file_area.lib[libname].dir_list[j].code);
options.auto = true;
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment