Skip to content

Commit f5708dc

Browse files
committed
web: default WebJsMode to es
1 parent 4e9ef85 commit f5708dc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/doc/docIntro/doc/ChangeLog.fandoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Compiler: rename CField.fieldType to type
1919
- Compiler: rename MethodDef.ret to returns
2020
- Compiler: rename FuncType.ret to returns
21+
- Default default WebJsMode to es
2122
- Add File.withIn and File.withOut
2223
- Add StrBuf.joinNotNull
2324
- Add Win.devicePixelRatio

src/doc/docLang/doc/Java.fandoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Fantom transpiles to Java using the following conventions
2525
- Any type/slot name with "$" is synthetic and should not be used
2626
- Const fields are compiled into a Java getter method
2727
- Mutable fields are compiled into a Java getter and setter method
28-
- Contructors are compiled into static factory methods (never use
28+
- Constructors are compiled into static factory methods (never use
2929
the Java constructors directly)
3030
- Mixins are compiled to Java interfaces and will make use
3131
of Java default methods (note Java interfaces do not support

src/web/fan/WebJsMode.fan

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ using concurrent
3434
static Void setCur(WebJsMode cur) { curRef.val = cur }
3535

3636
** Global variable
37-
private static const AtomicRef curRef := AtomicRef(WebJsMode.js)
38-
}
37+
private static const AtomicRef curRef := AtomicRef(WebJsMode.es)
38+
}
39+

0 commit comments

Comments
 (0)