-
-
Notifications
You must be signed in to change notification settings - Fork 932
Closed
Labels
C-bugCategory - BugCategory - Buggood first issueExperience Level - Good for newcomersExperience Level - Good for newcomers
Description
it's fixed to invalid JS code.
bunx oxlint@latest -D no-useless-promise-resolve-reject <path to file>
let output = [];
async function foo() {
Promise.resolve().then(() => output.push('--end microtask--'));
}fixed:
let output = [];
async function foo() {
.then(() => output.push('--end microtask--'));
}maybe expected fix?
let output = [];
async function foo() {
return output.push('--end microtask--')
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCategory - BugCategory - Buggood first issueExperience Level - Good for newcomersExperience Level - Good for newcomers
Type
Fields
Give feedbackPriority
None yet