gjs r51 - trunk/test/js/modules
- From: jobi svn gnome org
- To: svn-commits-list gnome org
- Subject: gjs r51 - trunk/test/js/modules
- Date: Fri, 24 Oct 2008 15:16:25 +0000 (UTC)
Author: jobi
Date: Fri Oct 24 15:16:25 2008
New Revision: 51
URL: http://svn.gnome.org/viewvc/gjs?rev=51&view=rev
Log:
test: include line number to jsUnit stack trace
Patch by Tommi Komulainen
Modified:
trunk/test/js/modules/jsUnit.js
Modified: trunk/test/js/modules/jsUnit.js
==============================================================================
--- trunk/test/js/modules/jsUnit.js (original)
+++ trunk/test/js/modules/jsUnit.js Fri Oct 24 15:16:25 2008
@@ -283,6 +283,11 @@
name = 'anonymous';
}
+ var line = framedata.match(/(:\d+)$/)[1];
+ if (line) {
+ name += line;
+ }
+
stack[stack.length] = name;
}
// remove top level anonymous functions to match IE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]