mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
When a computed member expression uses a constant string (e.g. super["minutes"] or obj["key"]), optimize it to use the MemberId or SuperMemberId reference form instead of the value-based form, matching the C++ pipeline optimization.
8 lines
105 B
JavaScript
8 lines
105 B
JavaScript
class C extends Object {
|
|
constructor() {
|
|
super();
|
|
super["foo"] = 1;
|
|
}
|
|
}
|
|
new C();
|