Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb879f4

Browse files
author
zhourenjian@gmail.com
committed
Remove $t$ and $c$ if possible for those static fields
For Java code:TestSS.bytes = new byte[10];Early version of Java2Script compiler will generate codes as following:($t$ = test.j2s.TestSS.bytes, test.j2s.TestSS.bytes = Clazz.newByteArray (10, 0), test.j2s.TestSS.prototype.bytes = test.j2s.TestSS.bytes, $t$);From now on, by default, as .j2s configuration will bej2s.compiler.static.quirks=disableJ2S compiler will generate codes as following:test.j2s.TestSS.bytes = Clazz.newByteArray (10, 0);Codes generated are much simpler.To enable old quirks mode for static fields, add line:j2s.compiler.static.quirks=enableto .j2s file.
1 parent355a187 commitdb879f4

File tree

4 files changed

+467
-186
lines changed

4 files changed

+467
-186
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp