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

Implement support for [LegacyWindowAlias] and [NoInterfaceObject] #191

Merged
merged 4 commits into from
Apr 4, 2020

Conversation

ExE-Boss
Copy link
Contributor

@ExE-Boss ExE-Boss commented Apr 3, 2020

Fixes #187


review?(@TimothyGu)

@ExE-Boss ExE-Boss changed the title Implement support for [LegacyWindowAlias] Implement support for [LegacyWindowAlias] and [NoInterfaceObject] Apr 3, 2020
@ExE-Boss ExE-Boss changed the title Implement support for [LegacyWindowAlias] and [NoInterfaceObject] Implement support for [LegacyWindowAlias] and [NoInterfaceObject] Apr 3, 2020
Copy link
Member

@TimothyGu TimothyGu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to make sense to implement [Exposed] in this PR too, as it seems odd that the globalName is only used for [LegacyWindowAlias]. But up to you.

test/cases/DOMRect.webidl Outdated Show resolved Hide resolved
lib/constructs/interface.js Outdated Show resolved Hide resolved
lib/constructs/interface.js Outdated Show resolved Hide resolved
lib/constructs/interface.js Outdated Show resolved Hide resolved
@ExE-Boss
Copy link
Contributor Author

ExE-Boss commented Apr 4, 2020

[Exposed] is being implemented in #190.

@TimothyGu TimothyGu merged commit 5af205c into jsdom:master Apr 4, 2020
@TimothyGu TimothyGu deleted the feat/legacy-window-alias branch April 4, 2020 14:01
@@ -1420,7 +1463,7 @@ class Interface {
const { idl, name } = this;

this.str += `
exports.install = function install(globalObject) {
exports.install = (globalObject, globalName) => {
Copy link
Contributor Author

@ExE-Boss ExE-Boss Apr 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After re‑reading the spec for [Global] and [Exposed], I realised that this needs globalNames instead of globalName.

I’m fixing that in #190.

domenic added a commit that referenced this pull request Apr 19, 2020
This reverts the breaking changes introduced in #191, since it was accidentally released as a minor version in v15.2.0, while keeping the functionality.
domenic added a commit that referenced this pull request Apr 20, 2020
This reverts the breaking changes introduced in #191, since it was accidentally released as a minor version in v15.2.0, while keeping the functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LegacyWindowAlias]
2 participants