!JavaScript fido-nodelist-browser.js line 6940: SyntaxError: unterminated string
literal
Hey there, echicken!
Is there a trick to getting the "new" fido-nodelist-browser.js to work?
When I run it, I get this error:
!JavaScript fido-nodelist-browser.js line 6940: SyntaxError: unterminated string
literal
!ERROR[x3] compiling C:\sbbs\exec\fido-nodelist-browser.js
The line in question looks like a terminated string to me, so I'm puzzled as to what's causing the error.
Pasting the offending line would maybe help.
6939 case "^X":
6940 case "^Y":
6941 case "^Z":
Is it possible you have more than copy of that file and you're looking at line 6940 in the wrong one?
Re: Error in fido-nodelist-browser.js
By: nelgin to Codefenix on Mon Jan 20 2025 03:11 am
Pasting the offending line would maybe help.
6939 case "^X":
6940 case "^Y":
6941 case "^Z":
Yeah, I didn't do that since the strings in these case statements contain nonprintables, and I don't have those committed to memory as CTRL codes. Here's how Notepad++ expresses them though (with "show all characters" enabled):
6939: case "CAN":
6940: case "EM": // this is the line it's complaining about
6941: case "SUB":
Suppose it would be the string containing the CTRL-Y.
Wow. I didn't realize there were actually control codes embedded in the file! I'm surprised that works for anyone.
Suppose it would be the string containing the CTRL-Y.
Apparently, yeah, but that's not how you're supposed to do that in JavaScript. I'll take a look at fixing that.
| Sysop: | Weed Hopper |
|---|---|
| Location: | Clearwater, FL |
| Users: | 16 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 190:14:41 |
| Calls: | 134 |
| Files: | 50,537 |
| D/L today: |
164 files (152M bytes) |
| Messages: | 324,191 |