angular-cn/packages/platform-browser/testing/src
Alex Rickabaugh 1d19d61970 fix(platform-browser): support Symbols in custom jasmineToString() method (#19794)
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.
2017-11-03 11:11:47 -07:00
..
browser.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
browser_util.ts fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
matchers.ts fix(platform-browser): support Symbols in custom jasmineToString() method (#19794) 2017-11-03 11:11:47 -07:00
testing.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00