Commit 5e9891e
committed
In Scala.js mode, compile all lazy vals as thread-unsafe.
Since JS is a single-threaded environment, there is no point going
through all the machinery of thread-safe lazy vals.
This fixes lazy vals for JS, which would previously fail to link
because of the dependency on `Unsafe`, which is not supported in
Scala.js.1 parent f0fd5de commit 5e9891e
File tree
2 files changed
+3
-5
lines changed- compiler/src/dotty/tools/dotc/transform
- project
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
457 | | - | |
458 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
| 940 | + | |
940 | 941 | | |
941 | 942 | | |
942 | 943 | | |
| |||
0 commit comments