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
Some values can't be passed directly to a function.
I was trying to pass true as the first argument to a function, but it got turned into undefined. From what I've seen this happens with false and null as well.
Check the below example and its output (from running ./v7 file.js), written in the comments:
Some values can't be passed directly to a function.
I was trying to pass
true
as the first argument to a function, but it got turned intoundefined
. From what I've seen this happens withfalse
andnull
as well.Check the below example and its output (from running
./v7 file.js
), written in the comments:If instead you put the
true
value in a variable and pass it through that variable, everything works well.Everything works if
true
is generated from any expression as well.I compiled the latest master (as of today) of v7 with the following command:
gcc -O0 -DV7_EXE -DV7_ENABLE_STACK_TRACKING -DV7_ENABLE_FILE v7.c -lm
But even when keeping only
-DV7_EXE
I can still reproduce this issue.The text was updated successfully, but these errors were encountered: