mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibJS: Fix bytecode generation for super property stores and loads
The new test case crashes during bytecode generation due to `emit_super_reference` not correctly generating the reference record for the property access.
This commit is contained in:
parent
778947213b
commit
356728b1e0
Notes:
github-actions[bot]
2025-02-15 12:01:01 +00:00
Author: https://github.com/ttrssreal
Commit: 356728b1e0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3565
Reviewed-by: https://github.com/trflynn89
2 changed files with 17 additions and 0 deletions
|
@ -181,6 +181,16 @@ test("Issue #7044, super property access before super() call", () => {
|
|||
new Foo();
|
||||
});
|
||||
|
||||
test("super property load and store by identifier", () => {
|
||||
class Foo {
|
||||
constructor() {
|
||||
super.bar += "1337";
|
||||
}
|
||||
}
|
||||
|
||||
new Foo();
|
||||
});
|
||||
|
||||
test("Issue #8574, super property access before super() call", () => {
|
||||
var hit = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue