| Index: pkg/stack_trace/lib/src/frame.dart
|
| diff --git a/pkg/stack_trace/lib/src/frame.dart b/pkg/stack_trace/lib/src/frame.dart
|
| index 96a5ec5e11738011daed38f54838f655d7a93529..67438c37e0bcfd19ca7d0cdf165c0ece143bec3c 100644
|
| --- a/pkg/stack_trace/lib/src/frame.dart
|
| +++ b/pkg/stack_trace/lib/src/frame.dart
|
| @@ -180,9 +180,12 @@ class Frame {
|
|
|
| // V8 stack frames can be in two forms.
|
| if (match[2] != null) {
|
| - // The first form looks like " at FUNCTION (LOCATION)".
|
| - return parseLocation(
|
| - match[2], match[1].replaceAll("<anonymous>", "<fn>"));
|
| + // The first form looks like " at FUNCTION (LOCATION)". V8 proper lists
|
| + // anonymous functions within eval as "<anonymous>", while IE10 lists them
|
| + // as "Anonymous function".
|
| + return parseLocation(match[2],
|
| + match[1].replaceAll("<anonymous>", "<fn>")
|
| + .replaceAll("Anonymous function", "<fn>"));
|
| } else {
|
| // The second form looks like " at LOCATION", and is used for anonymous
|
| // functions.
|
|
|