3 'print': function(text
) {
4 postMessage({'type': 'stdout', 'data': text
})
6 'TOTAL_MEMORY': 512000000
8 importScripts("pep8analysis.js")
9 run_analysis
= Module
.cwrap('pep8analysis_web___NativeString_run_analysis', null, ['string'])
11 function show_graph(data
) {
12 postMessage({'type':"show_graph", 'data': data
})
15 // notify UI it's ready
16 postMessage({'type':"ready"})
18 // wait for code to analyze
19 self
.onmessage
= function(event
){
21 run_analysis(event
.data
)
22 postMessage({'type':"complete"})
25 postMessage({'type':"exception", 'data': e
.toString()})