mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user