Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read properties of undefined (reading 'split') #1

Open
flatsiedatsie opened this issue Aug 9, 2023 · 2 comments

Comments

@flatsiedatsie
Copy link

Thank you for this wonderful little project.

I noticed an error when using it:

in.js:84 Uncaught TypeError: Cannot read properties of undefined (reading 'split')
    at executeCode (main.js:84:50)
    at HTMLDocument.<anonymous> (main.js:28:5)
e

Which is this code:

      if(e.lineNumber == undefined)
            e.lineNumber = e.stack.split('>:')[1].split(':')[0];
        codeOutput.innerHTML += '<h4 style="color: #ff5555">Problem at line number: <span style="color: #f0f0f0">' + e.lineNumber + '</span></h4>';
  

I've made some minor modifications (backup of the current text & run the code after eack keystroke), but since they are not modification of the code itself they shouldn't be the cause?

Another question: under what license is this code available?

@vikas-kukreti
Copy link
Owner

Which OS and Browser you are using ?

@flatsiedatsie
Copy link
Author

MacOS and Brave. But I've since fixed the issue.

I've made some cool modifications (upgraded to CodeMirror6, and moved from eval to a webworker), but I will only release the project to the public if you allow that. Could you state the license under which the original code is available, if any?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants