LibJS: Allow comparing module records by equality
This commit is contained in:
parent
431faa1044
commit
1a15e2cec6
Notes:
github-actions[bot]
2024-12-01 11:26:58 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/1a15e2cec6e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2671
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,8 @@ struct ModuleWithSpecifier {
|
|||
struct ImportAttribute {
|
||||
ByteString key;
|
||||
ByteString value;
|
||||
|
||||
bool operator==(ImportAttribute const&) const = default;
|
||||
};
|
||||
|
||||
// https://tc39.es/proposal-import-attributes/#modulerequest-record
|
||||
|
@ -42,6 +44,8 @@ struct ModuleRequest {
|
|||
|
||||
DeprecatedFlyString module_specifier; // [[Specifier]]
|
||||
Vector<ImportAttribute> attributes; // [[Attributes]]
|
||||
|
||||
bool operator==(ModuleRequest const&) const = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue