[PATCH] jsDelete for instance deletion
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello.
The attached patch declares a new overloaded jsDelete() function which deletes a instance. For example, this code:
x := TJSJSON.parse('{"abc":123}'); jsDelete(x); console.log(x); // prints "undefined"
is equivalent to:
x := TJSJSON.parse('{"abc":123}'); asm delete(x); end; console.log(x); // prints "undefined"
or:
x := TJSJSON.parse('{"abc":123}'); asm delete x; end; console.log(x); // prints "undefined"
cheers
Mantis conversion info:
- Mantis ID: 35398