-
Notifications
You must be signed in to change notification settings - Fork 144
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
Invalid increment syntax, and other small issues #26
Comments
This might be related as well: function test(a) {
++a;
} turns into function test(a) {
NaN;
} |
function test() {
console[a()]();
} function test() {
console();
} |
I hope this isn't too spammy lol. try {
throw "error";
} catch(e) {
a();
} try {
throw 'error';
} |
function a() {
b()
}
a(); function a() {
b()
}
undefined; Edit: I realize this is kind of expected as the function doesn't return, but the function b could have side-effects which wouldn't be invoked in the resulting code. |
1 / -0 still evaluates to -1e+400; |
function a(x) {
return x.test;
}
a({}); function a(x) {
return x.test;
}
x.test; When the argument is an object, the call is incorrectly replaced with the argument variable outside of the scope |
This causes an error var c = 1;
while (c--) {
new RegExp(c + "")
} |
results in
which is invalid syntax.
When chained together
it results in
Expected result would be
1
and3
respectively.The text was updated successfully, but these errors were encountered: