Skip to content

Commit 34d22de

Browse files
committed
Minor test cleanup and tweaks
1 parent be0b3bb commit 34d22de

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/test-stacktrace.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -199,19 +199,19 @@
199199
e.push({ stack: 'ignored\nf1([arguments not available])@http://site.com/main.js:2\n<anonymous function: f2>([arguments not available])@http://site.com/main.js:4\n@',
200200
stacktrace: 'ignored\nError thrown at line 129, column 5 in <anonymous function>():\nignored\nError thrown at line 129, column 5 in <anonymous function>():\nignored\nError thrown at line 124, column 4 in <anonymous function>():\nignored\nError thrown at line 594, column 2 in process():\nignored\nError thrown at line 124, column 4 in <anonymous function>():\nignored\nError thrown at line 1, column 55 in discarded():\n this.undef();\ncalled from line 1, column 333 in f1(arg1, arg2):\n discarded();\ncalled from line 1, column 470 in <anonymous function>():\n f1(1, "abc");\ncalled from line 1, column 278 in program code:\n f2();' });
201201
if (mode == 'opera10') {
202-
function discarded() {
203-
try {this.undef();} catch (exception) {
204-
e.push(exception);
205-
}
206-
}
207-
function f1(arg1, arg2) {
208-
var blah = arg1;
209-
discarded();
210-
}
211-
var f2 = function() {
212-
f1(1, "abc");
213-
};
214-
f2();
202+
function discarded() {
203+
try {this.undef();} catch (exception) {
204+
e.push(exception);
205+
}
206+
}
207+
function f1(arg1, arg2) {
208+
var blah = arg1;
209+
discarded();
210+
}
211+
var f2 = function() {
212+
f1(1, "abc");
213+
};
214+
f2();
215215
}
216216
expect(3 * e.length);
217217
for(var i = 0; i < e.length; i++) {

0 commit comments

Comments
 (0)