[...args, argsCount, object, methodName] → [newObject]
0x53
3+ → 1
5
ActionNewMethod invokes a constructor function to create a new object. A new object is constructed and passed to the constructor function as the value of the this keyword. Arguments can be specified to the constructor function. The return value from the constructor function is discarded. The newly constructed object is pushed to the stack, similar to ActionCallMethod and ActionNewObject.
Field | Type | Comment |
---|---|---|
ActionNewMethod | ACTIONRECORDHEADER | ActionCode = 0x53 |
ActionNewMethod 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).