-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3949 from masatake/javascript--static-block
JavaScript: skip static initialization blocks
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
a input.js /^class a {$/;" c | ||
b input.js /^ static { class b {} }$/;" c class:a | ||
fld0 input.js /^ fld0;$/;" M class:a | ||
c input.js /^ static { class c {} }$/;" c class:a | ||
fld1 input.js /^ static fld1;$/;" M class:a | ||
d input.js /^ static { class d {} }$/;" c class:a | ||
fld2 input.js /^ static fld2 = 1;$/;" M class:a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Derived from #3948 submitted by @cpardotortosa | ||
class a { | ||
static { class b {} } | ||
fld0; | ||
static { class c {} } | ||
static fld1; | ||
static { class d {} } | ||
static fld2 = 1; | ||
} | ||
a.b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters