Skip to content

BASIC fails to force uppercase when program has compile error #207

@fredsa

Description

@fredsa

To reproduce:

  1. Load a BASIC program
  2. Modify the program to have an, for example type "x" on a line by itself
  3. Reload the page

Expected:

  • Text that you type is uppercase

Actual:

  • Force upper case is disabled

Cause:

  • Uppercase is only installed after successful compilation, in loadROM.
    loadROM(title, data) {
         …
        editors.textMapFunctions.input = this.program.opts.uppercaseOnly ? (s) => s.toUpperCase() : null;
         …
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions