Commit Graph

24 Commits

Author SHA1 Message Date
nweiz@google.com 510387d990 Make the stack_trace package print relative URLs for browser paths.
Prior to this, only console paths were printed as relative.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//75543013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30484 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 21:02:03 +00:00
nweiz@google.com baee87f63d Work around issue 11901 in stack_trace.
For some reason, timer_impl.dart in dart:async has the incorrect URL
in VM stack traces. This adds manual handling for that in the
stack_trace package.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//63393004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30318 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 22:16:10 +00:00
nweiz@google.com 31ac89f049 Properly parse jsshell and d8 stack frames.
It turns out jsshell and d8 can use native paths where Firefox and
Chrome usually use URLs. This CL accommodates that.

R=rnystrom@google.com
BUG=14897

Review URL: https://codereview.chromium.org//63603005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30079 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 22:41:42 +00:00
nweiz@google.com 9cb7129067 Support Safari 6.1's new stack trace format in pkg/stack_trace.
R=rnystrom@google.com
BUG=14534

Review URL: https://codereview.chromium.org//48273005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29399 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 21:50:23 +00:00
nweiz@google.com 3c132b1e28 Properly parse friendly stack traces without columns.
Review URL: https://codereview.chromium.org//28783006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28892 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 22:57:06 +00:00
nweiz@google.com 54d951a769 Make stack frames without columns print correctly.
This works around issue 14233.

R=alanknight@google.com

Review URL: https://codereview.chromium.org//29323004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28884 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 21:55:41 +00:00
iposva@google.com f18e12b5db Address codereview comments:
- Update variable names.
- Add test case for column-free stack frame.

Review URL: https://codereview.chromium.org//24395014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27852 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 20:54:26 +00:00
iposva@google.com 8a9adf5656 - Use simplified token location call where appropriate.
R=asiva@google.com, hausner@google.com, mlippautz@google.com

Review URL: https://codereview.chromium.org//23850014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27833 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 17:32:40 +00:00
nweiz@google.com 28790a8eba Support "[as ...]" in V8 stack traces in pkg/stack_trace.
BUG=13431
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//23533074

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27720 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-20 19:38:58 +00:00
nweiz@google.com a24a587bb0 Support "..." VM frames in pkg/stack_trace.
Also include the original stack trace when a parse error occurs.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//23133004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26132 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-14 18:10:23 +00:00
rnystrom@google.com a9d24edd0f Rename "pathos" package to "path".
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//18356011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24964 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 17:54:48 +00:00
nweiz@google.com 031c343cae Add a couple functions to package:stack_trace.
This adds a function to convert a Trace to a VM-style StackTrace
object, and to parse a Trace-style string into a Trace.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//18029023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24611 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 22:24:01 +00:00
nweiz@google.com e91e9182c5 Add support for V8 and Firefox stack traces in pkg/stack_trace.
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//18167002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24569 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-28 01:22:36 +00:00
amouravski@google.com 5089f391d2 Revert "Add support for V8 and Firefox stack traces in pkg/stack_trace."
This reverts commit r24502.

Review URL: https://codereview.chromium.org//17998002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24506 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 02:16:12 +00:00
nweiz@google.com a92a52a4ff Add support for V8 and Firefox stack traces in pkg/stack_trace.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//17765004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24502 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 00:28:28 +00:00
nweiz@google.com 25ec4666f0 Fix the pkg/stack_trace tests.
On Windows they're now (correctly) using relative URIs as opposed to
relative paths.

Review URL: https://codereview.chromium.org//17157009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24205 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 22:15:07 +00:00
nweiz@google.com 66404438fc Add toUri and fromUri functions to pathos.
This also replaces the ubiqutous pathToFileUri/fileUriToPath functions.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//16848002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24196 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-19 19:06:19 +00:00
nweiz@google.com 25d42f64e6 Make the StackTrace library better handle core library frames.
Core library stack frames now have libraries and meaningful line numbers, so in
general we should preserve those. However, terse stack traces don't care about
the internal workings of the core libraries, so they now explicitly remove the
library and line number information.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//16097012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23621 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 23:36:31 +00:00
sgjesse@google.com 9d6a64e81b Merge the dart:uri library into dart:core and update the Uri class
This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.

* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization

R=floitsch@google.com, lrn@google.com, nweiz@google.com, scheglov@google.com
BUG=

Review URL: https://codereview.chromium.org//16019002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23266 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 13:35:01 +00:00
ajohnsen@google.com d548955117 Enable parsing of IPv6 form addresse (see rfc2373 and rfc2732).
This also wraps the 'domain' component in toString with [...], if it
contains any ':' characters.

BUG=
R=floitsch@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//14753005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22228 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 09:27:50 +00:00
nweiz@google.com 23bf53be66 Use the stack_trace library in scheduled_test.
This also adds a couple features to stack_trace.

Review URL: https://codereview.chromium.org//13157004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20752 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-01 20:46:15 +00:00
nweiz@google.com 250224ed32 Be more careful about converting between file URIs and paths.
This happened to work on Windows because it interprets forward slashes as
directory separators.

Review URL: https://codereview.chromium.org//13191011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20708 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-30 00:36:38 +00:00
nweiz@google.com e3fcad44c3 Fix Frame.location on Windows in pkg/stack_trace.
Review URL: https://codereview.chromium.org//12545080

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20586 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 21:37:20 +00:00
nweiz@google.com 3697a04750 Add a library for manipulating stack traces.
Review URL: https://codereview.chromium.org//13102003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20582 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 21:15:55 +00:00