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

Reference Error in malayalam #20

Open
ByteJoseph opened this issue Apr 25, 2024 · 2 comments
Open

Reference Error in malayalam #20

ByteJoseph opened this issue Apr 25, 2024 · 2 comments

Comments

@ByteJoseph
Copy link
Contributor

ByteJoseph commented Apr 25, 2024

Hits
I tried this in javascript

INPUT:

let k = "console.log('english')";
eval(k);

OUTPUT:

english

I tried this in Thengascript
INPUT:

ആവട്ടെ  = "കാണിക്കുക('മലയാളം')";
മൂല്യനിർണ്ണയം();

OUTPUT:

Error:  ReferenceError: കാണിക്കുക is not defined 

Tested in nodejs

@prathyvsh
Copy link
Member

Hey, that’s a good report. Well spotted! This can right now be solved by using മൂല്യനിർണ്ണയം(compile(ക)) where ക will be compiled to Thengascript and then evaluated.

A better way might be to put the compile step inside മൂല്യനിർണ്ണയം. Though, I think it might have some wrinkles if not thought through before pulling off. So let me give it a bit of time before I commit. Please consider using the compile inside for now.

And thanks a lot for the consistent bug reports 🙏❤️.

@ByteJoseph
Copy link
Contributor Author

any updates

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

Successfully merging a pull request may close this issue.

2 participants