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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

VariableNotFoundErrorException: Bad Bytecode & Incorrect Error Message #44

Closed
Capital-EX opened this issue Jun 18, 2016 · 1 comment
Closed

Comments

@Capital-EX
Copy link

When the Emojicode compiler encounters an unknown variable, It creates a bad .emojib and fails to report what variable triggered the error. Running the bad bytecode will result in a segfault.

Example:

馃懘 bad_code.emojic
馃悋 馃専 馃崌
    馃悋馃悥 馃弫 鉃★笍 馃殏 馃崌
        馃榾 馃敺馃敗馃殏 ?  
        馃崕 0
    馃崏
馃崏

correct console output: Variable "?" not defined.
actually console output: terminate called after throwing an instance of 'VariableNotFoundErrorException' Aborted (core dumped)

outputs: bad_code.emojib

thbwd pushed a commit that referenced this issue Jun 18, 2016
@thbwd
Copy link
Member

thbwd commented Jun 18, 2016

Somebody forgot to make that exception鈥檚 base class public... (2924758)

Thanks for helping Emojicode!

@thbwd thbwd closed this as completed Jun 18, 2016
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