diff --git a/test/test-invalidcall.js b/test/test-invalidcall.js new file mode 100644 index 0000000..f24f912 --- /dev/null +++ b/test/test-invalidcall.js @@ -0,0 +1,31 @@ +function sample (p) { + this.act = { + init : function () { + log('init') + }, + fail : function () { + log('should fail') + var x=without([1,2],[1]); + log(x) + }, + end : function () { + log('end') + kill() + }, + } + this.trans = { + init:fail, + fail:function () { + return end + } + } + this.next='init'; +} +verbose(1) +// remove API call +delete Aios.aios1.without; +delete Aios.aios2.without; + +compile(sample); +create('sample',{}) +start()