I have a following JavaScript code:
class Contract {
// constructor
constructor() {
// dynamic data
this.str = '';
this.count = 0;
}
// update function
update(_value){
this.str = _value;
this.count++;
}
}
How can I get bytecode and state of virtual machine using V8 engine?