browser-compat-data
browser-compat-data copied to clipboard
javascript.operators.import_meta.resolve - latest Node also returns a string
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Says "Returns a URL object instead of a string" which is no longer true with latest Node
What browsers does this problem apply to, if applicable?
Node.js
What did you expect to see?
Version information for when it starts returning strings
Did you test this? If so, how?
console.log(typeof import.meta.resolve("./worker.js"));
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
https://github.com/nodejs/node/pull/49698
I don't know which Node versions it corresponds to exactly; the history in Node docs didn't list this change.
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta/resolve
MDN metadata
MDN page report details
- Query:
javascript.operators.import_meta.resolve - Report started: 2024-08-06T23:12:42.961Z