Skip to content

Conversation

@y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Oct 2, 2025

Currently, some codes output warnings like the following.

warning: Backtick operator usage interpreted as intent to embed JavaScript; this code will break in Opal 2.0; add a magic comment: `# backtick_javascript: true` -- ./try_ruby.rb:

https://github.com/ruby/TryRuby/actions/runs/17408494030/job/49419277575#step:4:8

In Opal 2, backtick_javascript defaults to false, because Kernel#backtick is implemented. Files using inline JavaScript must add the # backtick_javascript: true magic comment.

Ref: opal/opal#2746

Currently, some codes output warnings like the following.

```
warning: Backtick operator usage interpreted as intent to embed JavaScript; this code will break in Opal 2.0; add a magic comment: `# backtick_javascript: true` -- ./try_ruby.rb:
```
https://github.com/ruby/TryRuby/actions/runs/17408494030/job/49419277575#step:4:8

In Opal 2, `backtick_javascript` defaults to false, because
`Kernel#backtick` is implemented.
Files using inline JavaScript must add the
`# backtick_javascript: true` magic comment.

Ref: opal/opal#2746
@y-yagi y-yagi closed this Oct 2, 2025
@y-yagi y-yagi reopened this Oct 2, 2025
@y-yagi y-yagi marked this pull request as ready for review October 2, 2025 22:54
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

Successfully merging this pull request may close these issues.

1 participant