diff --git a/test/test-code1.js b/test/test-code1.js new file mode 100644 index 0000000..e7b5804 --- /dev/null +++ b/test/test-code1.js @@ -0,0 +1,16 @@ +function foo () { + this.data=null; + this.goto=null; + this.act = { + main: function () { log(this.data===null)}, + end: function () { kill()}, + } + this.trans = { + main:end + } + this.next=main +} +compile(foo,{verbose:1}) +var ag = create('foo'); +print(agent(ag)) +start()