-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
Inline if/unless with function call breaks #1049
Comments
Ruby methods should never return non-Ruby values. |
For the sake of discussion #867 would fix this, but I'm strongly against it because things would break again as soon as you try to call a method on any bubbled up |
Isn't this a bug with opal-jquery then, in that a method it provides may yield weird results? |
@Papierkorb very likely, yes, open an issue on there 🐼 |
Bumps [portfinder](https://github.com/http-party/node-portfinder) from 1.0.27 to 1.0.28. - [Release notes](https://github.com/http-party/node-portfinder/releases) - [Commits](http-party/node-portfinder@v1.0.27...v1.0.28) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Hello. Running the following snippet on opalrb.org/try throws a Javascript error (See below):
But when I move the unless condition into a variable and check just that variable, it works:
The above snippet should output two lines like
<Element ..>
JavaScript error when trying the first snippet looks like this:
The interesting pieces from the generated JavaScript code:
Broken snippet:
Working snippet:
I think that
(!$a.$$is_boolean || $a == true)
in the broken snippet is the culprit, as$prop()
returnsundefined
. Verification by manually calling it in the JavaScript console of the developer tools:The text was updated successfully, but these errors were encountered: