mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
5a6efa7a3f
It's illegal to coerce a Symbol to a string, and results in a TypeError: TypeError: Cannot convert a Symbol value to a string Previously, the custom jasmineToString() method monkey-patched onto Maps in platform-browser/testing/src/matchers.ts would coerce keys and values to strings. A change in a newer version of Jasmine calls this method more often, resulting in calls against Maps which contain Symbols in some applications, which causes crashes. The fix is to explicitly convert keys and values to strings, which does work on Symbols.