Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure static private method init run before static property (#12918)
- Loading branch information
Showing
21 changed files
with
163 additions
and
143 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
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
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
29 changes: 0 additions & 29 deletions
29
...al-private-methods/test/fixtures/static-accessors-loose/access-before-declaration/exec.js
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...e-methods/test/fixtures/static-accessors-loose/access-in-static-field-initializer/exec.js
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,35 @@ | ||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static get #p() { return 0 }; | ||
constructor() { | ||
r = C.#p; | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); | ||
|
||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static set #p(v) { r = v; }; | ||
constructor() { | ||
C.#p = 0; | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); | ||
|
||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static set #p(v) { r = v; }; | ||
constructor() { | ||
for (C.#p of [0]); | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); |
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
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
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
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
29 changes: 0 additions & 29 deletions
29
...est/fixtures/static-accessors-privateFieldsAsProperties/access-before-declaration/exec.js
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...res/static-accessors-privateFieldsAsProperties/access-in-static-field-initializer/exec.js
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,35 @@ | ||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static get #p() { return 0 }; | ||
constructor() { | ||
r = C.#p; | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); | ||
|
||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static set #p(v) { r = v; }; | ||
constructor() { | ||
C.#p = 0; | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); | ||
|
||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static set #p(v) { r = v; }; | ||
constructor() { | ||
for (C.#p of [0]); | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); |
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
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
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
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
29 changes: 0 additions & 29 deletions
29
...proposal-private-methods/test/fixtures/static-accessors/access-before-declaration/exec.js
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...private-methods/test/fixtures/static-accessors/access-in-static-field-initializer/exec.js
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,35 @@ | ||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static get #p() { return 0 }; | ||
constructor() { | ||
r = C.#p; | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); | ||
|
||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static set #p(v) { r = v; }; | ||
constructor() { | ||
C.#p = 0; | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); | ||
|
||
expect((() => { | ||
let r; | ||
class C { | ||
static #_ = new C; | ||
static set #p(v) { r = v; }; | ||
constructor() { | ||
for (C.#p of [0]); | ||
} | ||
} | ||
return r; | ||
})()).toBe(0); |
Oops, something went wrong.