Tue 27 Aug 00:14:56 CEST 2024
This commit is contained in:
		
							parent
							
								
									cc9a2b87e7
								
							
						
					
					
						commit
						e2601ac531
					
				
							
								
								
									
										31
									
								
								test/test-invalidcall.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								test/test-invalidcall.js
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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()
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user