2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
6 var BUGNUMBER = 518103;
7 var summary = 'partial flat closures must not reach across funargs';
8 var actual = "no crash";
12 Timer.prototype = { initWithCallback: function (o) {Timer.q.push(o)} };
16 var ac = {startSearch: function(q,s,n,o){later=o}};
18 var bm = {insertBookmark: function(){}, getIdForItemAt: function(){}};
23 (function doSearch(query) {
24 ac.startSearch(query, "", null, {
25 onSearchResult: function() {
26 var num = tagIds.length;
28 var timer = new Timer;
29 var next = query.slice(1);
30 timer.initWithCallback({ notify: function() doSearch(next) });
37 later.onSearchResult();
38 for (var i in Timer.q)
41 reportCompare(expect, actual, summary);