Skip to content

How to resolve calls to URL()? #249

Closed as not planned
Closed as not planned
@marekdedic

Description

@marekdedic

Hi,
I'd like to use the ReferenceTracker.iterateGlobalReferences() method to track references to URL(). However, the following code doesn't find any:

for (const { path } of referenceTracker.iterateGlobalReferences({
	URL: {
		[ReferenceTracker.CALL]: true,
		[ReferenceTracker.CONSTRUCT]: true,
		[ReferenceTracker.READ]: true
	}
})) {
	console.log(path);
}

I suspect that is due to the fact that URL isn't (per MDN) an actual class, but an interface? (probably? I'm not really sure...) Is there something I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions