[...(name, value), itemCount] → [object]
0x43
2k + 1 → 1
5
@push(@stackObject(@pop()));
ActionInitObject initializes an object and is similar to ActionInitArray. The newly created object is pushed to the stack. The stack is the only existing reference to the newly created object. A subsequent SetVariable or SetMember action can store the newly created object in a variable.
Field | Type | Comment |
---|---|---|
ActionInitObject | ACTIONRECORDHEADER | ActionCode = 0x43 |
ActionInitObject pops elems off of the stack. Pops [value1, name1, ..., valueN, nameN] off the stack.
ActionInitObject does the following:
For all of the call actions (ActionCallMethod, ActionNewMethod, ActionNewObject, and ActionCallFunction) and initialization actions (ActionInitObject and ActionInitArray), the arguments of the function are pushed onto the stack in reverse order, with the rightmost argument first and the leftmost argument last. The arguments are subsequently popped off in order (first to last).