Skip to content

TypeError: Right-hand side of 'instanceof' is not an object #38361

@rifler

Description

@rifler

🐞 bug report

Affected Package

The issue is caused by package @angular/zone.js

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

instanceof is not safe operation, so if you monkeypatch such substantial method as Object.prototype.toString, you have to use try..catch

🔬 Minimal Reproduction

https://stackblitz.com/...

🔥 Exception or Error

TypeError: Right-hand side of 'instanceof' is not an object

🌍 Your Environment

Angular Version:





Anything else relevant?

Metadata

Metadata

Assignees

Labels

area: zonesIssues related to zone.jsneeds reproductionThis issue needs a reproduction in order for the team to investigate further

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions