Commit 039a628
committed
Fix warnings related with Opal 2
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#27461 parent d5e5a04 commit 039a628
File tree
4 files changed
+5
-0
lines changed- app
- ruby_engine
4 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
0 commit comments