From 3f3018f542830b68acaa95714897843624434087 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 18 Jan 2012 22:51:23 +0100 Subject: Updated sjcl and strop to the latest release Now the bug fixing starts! --- webclient/lib/sjcl.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'webclient/lib/sjcl.js') diff --git a/webclient/lib/sjcl.js b/webclient/lib/sjcl.js index 24d3e3b..9730862 100644 --- a/webclient/lib/sjcl.js +++ b/webclient/lib/sjcl.js @@ -67,6 +67,10 @@ var sjcl = { } } }; + +if(typeof module != 'undefined' && module.exports){ + module.exports = sjcl; +} /** @fileOverview Low-level AES implementation. * * This file contains a low-level implementation of AES, optimized for @@ -1762,7 +1766,7 @@ sjcl.random = { if (!i.match(/^[a-z0-9]+$/i)) { throw new sjcl.exception.invalid("json encode: invalid property name"); } - out += comma + i + ':'; + out += comma + '"' + i + '"' + ':'; comma = ','; switch (typeof obj[i]) { @@ -1800,13 +1804,13 @@ sjcl.random = { } var a = str.replace(/^\{|\}$/g, '').split(/,/), out={}, i, m; for (i=0; i