Matched values may not be JSONable, but must be matchable with __

This commit is contained in:
Tony Garnock-Jones 2014-05-26 13:44:15 -04:00
parent 0dce7a5e34
commit 6f21190383
1 changed files with 7 additions and 1 deletions

View File

@ -613,7 +613,13 @@ function Routing(exports) {
r = r.get(__);
}
} else {
var key = JSON.stringify(v);
var key;
try {
key = JSON.stringify(v);
} catch (exn) {
// For example, v might be cyclic, as in DOM events.
key = null;
}
if (key in r.entries) {
r = r.get(key);
} else {