HomeWildfire Games

Provide ScriptInterface CreateObject and CreateArray functions to replace Eval…

Description

Provide ScriptInterface CreateObject and CreateArray functions to replace Eval calls following rP7259, rP7653 and later.

Differential Revision: https://code.wildfiregames.com/D2080
Previous version reviewed By: Krinkle
Comments By: historic_bruno, wraitii

Event Timeline

vladislavbelov added inline comments.
/ps/trunk/source/lobby/XmppClient.cpp
535

It'd be better to call it index or similar. The same for others.

/ps/trunk/source/scriptinterface/ScriptInterface.h
144

One may want to replace these two functions by one with an additional template parameter like , CharType, and add a type check.

elexis added inline comments.Jul 29 2019, 1:51 PM
/ps/trunk/source/scriptinterface/ScriptInterface.h
144

Same for SetProperty.

But I'm mostly worried about performance. The JSAutoRequest is created for every property instead of only once, so I propose here to do it only once: D2127.