From c01e7580cd39617f3c57690942efeccc09597da8 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 3 Aug 2016 08:34:34 -0700 Subject: [PATCH] Avoid error in Edge accessing `localStorage` when loading tests via the file: protocol. --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 401bcc269..585199b54 100644 --- a/test/test.js +++ b/test/test.js @@ -332,7 +332,7 @@ }()); /** Used to detect instrumented istanbul code coverage runs. */ - var coverage = root.__coverage__ || root[lodashStable.findKey(root, function(value, key) { + var coverage = root.__coverage__ || root[lodashStable.find(lodashStable.keys(root), function(key) { return /^(?:\$\$cov_\d+\$\$)$/.test(key); })];