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

undefined compiles in to nothing #92

Open
takashi1kun opened this issue Mar 11, 2020 · 2 comments
Open

undefined compiles in to nothing #92

takashi1kun opened this issue Mar 11, 2020 · 2 comments

Comments

@takashi1kun
Copy link

i have a script that basically checks

someVariable === undefined && etc...

When i convert it to jsfuck and run it and then the browser it gives error because it is read as:
someVariable === && etc...

@takashi1kun
Copy link
Author

You can check by compiling this code:

if(undefined == undefined && true){console.log("test")}

It gives error Unexpected token '==' and if you click the VM in the debug console to see what is doing it appears it gets compiled to this:

(function anonymous(
) {
if( ==  && true){console.log("lol")}
})

@hazzik
Copy link
Contributor

hazzik commented Mar 11, 2020

Same as #68 (fixed in #75)

I assume you are talking about the website, which has outdated version.

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