mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.17k stars 22.46k forks source link

`Promise.try` is missing arguments #36413

Closed CanadaHonk closed 1 day ago

CanadaHonk commented 4 days ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/try

What specific section or headline is this issue about?

Syntax

What information was incorrect, unhelpful, or incomplete?

Promise.try(func) A function that is called synchronously with no arguments.

What did you expect to see?

Promise.try(func, ...args)

Do you have any supporting links, references, or citations?

Spec: https://tc39.es/proposal-promise-try/#sec-promise.try

Do you have anything more you want to share?

No response

MDN metadata

Page report details * Folder: `en-us/web/javascript/reference/global_objects/promise/try` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/try * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/javascript/reference/global_objects/promise/try/index.md * Last commit: https://github.com/mdn/content/commit/b67fd42cfb01dd4d9504c4182b462851588a0bad * Document last modified: 2024-09-07T02:12:32.000Z
Josh-Cena commented 4 days ago

Wow, it was added 8 months ago—how did I miss it?!

Thanks for filing!