@webqit/subscript
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -11,3 +11,3 @@ { | ||
"homepage": "https://webqit.io/tooling/subscript", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -118,11 +118,3 @@ | ||
} | ||
let returnValue; | ||
try { | ||
returnValue = this.callee.call( $this, this.unit, ...$arguments ); | ||
} catch(e) { | ||
console.info('-----------------------'); | ||
console.log(this.params.originalSource || ''); | ||
console.info('-----------------------'); | ||
throw e; | ||
} | ||
let returnValue = this.callee.call( $this, this.unit, ...$arguments ); | ||
if ( this.graph.$sideEffects ) { | ||
@@ -129,0 +121,0 @@ for ( let referenceId in this.graph.effects ) { |
@@ -106,5 +106,12 @@ /** | ||
const create = function( defaultThis, compilation, parameters = [], _runtimeParams = {}, originalSource = null, sourceName = null ) { | ||
let runtime = Runtime.create( compilation, parameters, { ..._runtimeParams, ...SubscriptFunction.runtimeParams, originalSource } ); | ||
let runtime = Runtime.create( compilation, parameters, { ..._runtimeParams, ...SubscriptFunction.runtimeParams } ); | ||
let _function = function( ...args ) { | ||
return runtime.call( this === undefined ? defaultThis : this, ...args ); | ||
try { | ||
return runtime.call( this === undefined ? defaultThis : this, ...args ); | ||
} catch(e) { | ||
console.info('-----------------------'); | ||
console.log(originalSource || ''); | ||
console.info('-----------------------'); | ||
throw e; | ||
} | ||
}; | ||
@@ -111,0 +118,0 @@ _function.thread = runtime.thread.bind( runtime ); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3662588
6906