aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Croteau <jcroteau@gmail.com>2014-02-19 23:18:31 -0800
committerJoel Croteau <jcroteau@gmail.com>2014-02-19 23:18:31 -0800
commit52b31846e442da6d2243defe39cd988568dd93ba (patch)
tree62cbea98b747d445f1955cfb5382b15d9e70fbfc /src
parenta28fad120298fee2b120c47aa0b6d29bf3ff0830 (diff)
Formatting fix and add test
Diffstat (limited to 'src')
-rw-r--r--src/library.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/library.js b/src/library.js
index 9f5a7dd7..340384e7 100644
--- a/src/library.js
+++ b/src/library.js
@@ -6444,18 +6444,18 @@ LibraryManager.library = {
var me = _localeconv;
if (!me.ret) {
// These are defaults from the "C" locale
- me.ret = allocate(
- [allocate(intArrayFromString('.'), 'i8', ALLOC_NORMAL),0,0,0, // decimal_point
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // thousands_sep
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // grouping
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // int_curr_symbol
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // currency_symbol
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // mon_decimal_point
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // mon_thousands_sep
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // mon_grouping
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // positive_sign
- allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0], // negative_sign
- 'i8*', ALLOC_NORMAL); // Allocate strings in lconv, still don't allocate chars
+ me.ret = allocate([
+ allocate(intArrayFromString('.'), 'i8', ALLOC_NORMAL),0,0,0, // decimal_point
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // thousands_sep
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // grouping
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // int_curr_symbol
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // currency_symbol
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // mon_decimal_point
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // mon_thousands_sep
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // mon_grouping
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0, // positive_sign
+ allocate(intArrayFromString(''), 'i8', ALLOC_NORMAL),0,0,0 // negative_sign
+ ], 'i8*', ALLOC_NORMAL); // Allocate strings in lconv, still don't allocate chars
}
return me.ret;
},