vm: move Jump method to the Context
Because it's only relevant for execution context itself.
This commit is contained in:
parent
8c704a49b5
commit
a577d40de9
8 changed files with 22 additions and 23 deletions
|
@ -87,7 +87,7 @@ func invokeMethod(t *testing.T, method string, script []byte, v *vm.VM, di *comp
|
|||
}
|
||||
require.True(t, mainOffset >= 0)
|
||||
v.LoadScriptWithFlags(script, callflag.All)
|
||||
v.Jump(v.Context(), mainOffset)
|
||||
v.Context().Jump(mainOffset)
|
||||
if initOffset >= 0 {
|
||||
v.Call(v.Context(), initOffset)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue