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

javascript.operators.import_meta.resolve - latest Node also returns a string #24054

Open
Josh-Cena opened this issue Aug 6, 2024 · 3 comments · May be fixed by #25020
Open

javascript.operators.import_meta.resolve - latest Node also returns a string #24054

Josh-Cena opened this issue Aug 6, 2024 · 3 comments · May be fixed by #25020
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript

Comments

@Josh-Cena
Copy link
Member

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?

nodejs/node#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
@queengooborg queengooborg added the data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Aug 7, 2024
@CodeWitchBella
Copy link

According to this comment on node.js issue it got fixed in 20.8.0. It's also in the changelog and here are the commit and PR in which it landed.

@skyclouds2001
Copy link
Contributor

per nodejs/node#49698, it is also backlog to v18.19.0

@skyclouds2001
Copy link
Contributor

skyclouds2001 added a commit to skyclouds2001/browser-compat-data that referenced this issue Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@queengooborg @CodeWitchBella @Josh-Cena @skyclouds2001 and others