From b94a7b7e38bea0b31a79e3988920073c1cfad8df Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 14 Jul 2010 16:05:12 +0800 Subject: [PATCH] JSDOC/CompressWhite.js --- JSDOC/CompressWhite.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index 0774741..55687ad 100644 --- a/JSDOC/CompressWhite.js +++ b/JSDOC/CompressWhite.js @@ -154,10 +154,16 @@ CompressWhite = function (ts, packer) // print(ts.lookTok(2).toString()); if (ts.lookTok(1).data == '=' && ts.lookTok(2).name == 'FUNCTION' ) { // freeze time.. - //println("----------*** 3 *** --------------"); + print("compress white : got a = function "); var cu = ts.cursor; ts.balance("("); - + if (!ts.balance("(") ){ + ts.dump(cu-40, cu); + print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>"); + ts.dump(cu, cu+40); + + throw "could not find end lbrace!!!"; + } if (!ts.balance("{") ){ ts.dump(cu-40, cu); print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>"); -- 2.39.2