diff --git a/src/squint/core.js b/src/squint/core.js index 40b6a41d..e1120540 100644 --- a/src/squint/core.js +++ b/src/squint/core.js @@ -412,8 +412,10 @@ export function get(coll, key, otherwise = undefined) { // we choose .get as the default implementation, e.g. fetch Headers are not Maps, but do implement a .get method let g = coll['get']; if (g instanceof Function) { + try { v = coll.get(key); - break; + break; + } catch (e) {} } v = coll[key]; break;