Skip to content

State persistance issue (FF) #50

@Geist-zz

Description

@Geist-zz

Problem:
If program hangs interpreter in Firefox, after stopping the js script and refreshing the tab, the interpreter will autorun the bad program (even if you paste the url of the interpreter in another tab). And this continues after restarting the browser.

What should happen:
The interpreter shouldn't autorun the program (on refresh / restart of the browser / pasting interpreter url in another tab). Or it should load the demo program instead of auto-executing the custom code.

Bypass:
Switching HTTP protocol (from ex. http to https) allows you to run new instance of interpreter. Side note: under https, the tape storage doesn't work (tape list doesn't show).

Code that hangs the script (in the last 3 lines I didn't add "10" to the line numbers in THEN and GOTO):

1000 A=100:GOTO20
1010 LET W=500:DIM F(W):LET P=1:LET A=3
1020 LET F(P)=A:LET P=P+1:IF P>W THEN GOTO 950
1030 LET A=A+2:LET X=1
1040 LET S=A/F(X):IF S=INT(S) THEN 30
1050 LET X=X+1:IF X<P AND F(X)*F(X)<=A THEN 40
1060 GOTO 20

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions