MCPcopy
hub / github.com/jscad/OpenJSCAD.org / callback

Function callback

src/jscad/processor.js:481–499  ·  view source on GitHub ↗
(err, objects)

Source from the content-addressed store, hash-verified

479 this.state = 1 // processing
480 let that = this
481 function callback (err, objects) {
482 if (err) {
483 that.clearViewer()
484
485 if (err.stack) {
486 let errtxt = ''
487 errtxt += '\nStack trace:\n' + err.stack
488 // var errtxt = err.toString()
489 }
490 that.setStatus('error', err)// 'Error.'
491 that.state = 3 // incomplete
492
493 } else {
494 that.setCurrentObjects(objects)
495 that.setStatus('ready')
496 that.state = 2 // complete
497 }
498 that.enableItems()
499 }
500
501 if (this.opts.useAsync) {
502 this.builder = rebuildSolidInWorker(script, fullurl, parameters, (err, objects) => {

Callers 5

processor.jsFile · 0.70
lightgl.jsFile · 0.50
regexMapFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected