Skip to content

Measure the number of eval calls in JavaScript code#50

Merged
macbre merged 2 commits intomasterfrom
issue-50-js-evals
Sep 8, 2013
Merged

Measure the number of eval calls in JavaScript code#50
macbre merged 2 commits intomasterfrom
issue-50-js-evals

Conversation

@macbre
Copy link
Owner

@macbre macbre commented Sep 8, 2013

Count:

  • direct calls to eval
  • hidden calls by passing string to setTimeout / setInterval

@ghost ghost assigned macbre Aug 31, 2013
@macbre
Copy link
Owner Author

macbre commented Sep 8, 2013

Module will emit warnings like the following:

20:49:07.863 eval() called directly: from unknown fn: http://lib.onet.pl/s.csr/init/20130829,init.js @ 53!
20:49:07.863 Backtrace: unknown fn: http://lib.onet.pl/s.csr/init/20130829,init.js @ 53 / onetShowAsyncSlots(): http://lib.onet.pl/s.csr/init/20130829,init.js @ 18 / onetShowAsynchAds(): http://lib.onet.pl/s.csr/init/20130829,init.js @ 15 / unknown fn: http://csr.onet.pl/_s/csr-005/GLOWNA/NOWASG/slots=top,right,flat-sidebarbox,flat-search,flat-boks1,flat-link1,flat-link2,flat-link3,flat-link5,flat-link4,flat-link6,flat-link7,flat-link8,flat-link11,flat-link12,flat-link13,flat-boxright1,flat-boxright2,flat-boxright3,flat-boxright4,flat-boxright5,flat-boxright6,flat-boxright9,flat-boxright10,flat-config/kwrd=SEGR+BETA2+WARSZAWA/async=1/IV=201309082249070003870418/csr.js?AC=0ae59522ce2c3182&callback=onetShowAsynchAds @ 4
20:49:07.863 eval'ed code: link11spons = {
        "link": "Czas na grzybobranie, sprawdź się!", 
        "url": "http://fa4.clk.onet.pl/adclick/CID=100253/CCID=42651/(...)
17:32:42.947 eval() called via setTimeout(_gaq.push(['_trackEvent','CzasUU', 'RealnyBounce', 'Wiecej niz 10 sekund'])): from unknown fn: http://www.onet.pl/ @ 70!
17:32:42.947 Backtrace: unknown fn: http://www.onet.pl/ @ 70

macbre added a commit that referenced this pull request Sep 8, 2013
Measure the number of eval calls in JavaScript code
@macbre macbre merged commit 4070179 into master Sep 8, 2013
@macbre macbre deleted the issue-50-js-evals branch September 8, 2013 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant