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
TypeError in window constructor #627
Comments
I don't know why we didn't test this in |
Weird. TypeScript generates the constructor(options) {
super();
this.innerWidth = options?.innerWidth ? options.innerWidth : 0;
this.innerHeight = options?.innerHeight ? options.innerHeight : 0;
if (options?.url) {
this.location.href = options.url;
}
// ...
this.location = new Location_1.default();
} So |
Yes, I think so. submit a PR if you're ready. |
#627@patch: Fix location.href initialization in Window.
Thanks for reporting @Mas0nShi! 🙂 I guess I missed adding a unit test for it. Weird behavior by Typescript, it is not really expected. Big thanks to @jledentu for you contribution! 🙂 You can read more about the release here: |
Describe the bug
The text was updated successfully, but these errors were encountered: