Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix performance interface timing member #25205

Merged

#23330 fix clear_entries_by_name_and_type bug

  • Loading branch information
shnmorimoto authored and jdm committed Dec 13, 2019
commit 7d184c1b01ef69e9ade2692936f9677d9d342104
@@ -96,10 +96,10 @@ impl PerformanceEntryList {
entry_type: Option<DOMString>,
) {
self.entries.retain(|e| {
name.as_ref().map_or(true, |name_| *e.name() == *name_) &&
name.as_ref().map_or(true, |name_| *e.name() != *name_) &&
entry_type
.as_ref()
.map_or(true, |type_| *e.entry_type() == *type_)
.map_or(true, |type_| *e.entry_type() != *type_)
});
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.