0ad/binaries/data/mods/mod/globalscripts
elexis 5a691463a3 Update sprintf.js library from 1.0.2 to 1.1.2.
Includes a changeset that removes a SpiderMonkey segfault from occurring
(when passing an XmppClient JS::Heap or JS::PersistentRooted GUIMessage
following 9023f4bebb), refs #5636.
https://bugzilla.mozilla.org/show_bug.cgi?id=1234425
https://bugzilla.mozilla.org/show_bug.cgi?id=1238475
61c7956242

sprintf.js commits that add new features:

padding (intent) support:
9e846915e2

Adds support for the %g placeholder
g — yields a float as is; see notes on precision above
a60a5705fc

Adds type option
T — yields the type of the argument1
c31c24ecef

Adds support for the %t (boolean) type specifier
t — yields true or false
b92b530c7a

Adds support for returning primitive values through the %v specifier
v — yields the primitive value of the specified argument
f18037240b

The other commits clean sprintf internals and do not change the existing
formats, see:
https://github.com/alexei/sprintf.js/blob/1.0.2/src/sprintf.js
https://github.com/alexei/sprintf.js/blob/1.1.2/src/sprintf.js
https://github.com/alexei/sprintf.js/blob/1.1.2/README.md

Differential Revision: https://code.wildfiregames.com/D2421
Tested by: Angen
This was SVN commit r23157.
2019-11-14 13:00:35 +00:00
..
l10n.js Move translate functions from mod/globalscripts/ to mod/gui/common/. 2017-11-28 18:48:52 +00:00
sprintf.js Update sprintf.js library from 1.0.2 to 1.1.2. 2019-11-14 13:00:35 +00:00