You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Precondition: foo is undefined
2. Run this code: if (foo !== undefined) foo();
3. Gives error message: "Expecting 'foo' to be a function"
4. This works: if (foo !== undefined) { foo(); }
What is the expected output? What do you see instead?
Expected bracket-less body to work.
Works when function is defined, for example:
if (foo !== undefined) print('Hello');
Hello is not printed, as expected.
The implementation seems to take the value of the function symbol, even when
the condition in the if-statement is false (have not looked at this in the
actual implementation, I'm guessing).
What version of the product are you using? On what operating system?
TinyJS r11 (Tested on the MoSync port: http://code.google.com/p/mobile-tiny-js/
Have not tested with the original code, but I think it behaves the same as the
port.)
Original issue reported on code.google.com by mikael.k...@gtempaccount.com on 28 Jul 2010 at 7:01
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
mikael.k...@gtempaccount.com
on 28 Jul 2010 at 7:01The text was updated successfully, but these errors were encountered: