Fixed hidden error triggered setting "use strict"

This commit is contained in:
Giulio Cesare Solaroli 2015-08-13 10:54:49 +02:00
parent 00398aa65e
commit a53767d5c0
2 changed files with 9 additions and 4 deletions

View File

@ -21,6 +21,8 @@ refer to http://www.clipperz.com.
*/ */
"use strict";
try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) {
throw "Clipperz.Crypto.AES depends on Clipperz.ByteArray!"; throw "Clipperz.Crypto.AES depends on Clipperz.ByteArray!";
} }

View File

@ -21,6 +21,8 @@ refer to http://www.clipperz.com.
*/ */
"use strict";
try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) {
throw "Clipperz.Crypto.AES_2 depends on Clipperz.ByteArray!"; throw "Clipperz.Crypto.AES_2 depends on Clipperz.ByteArray!";
} }
@ -808,6 +810,7 @@ MochiKit.Base.update(Clipperz.Crypto.AES_2, {
var nonce; var nonce;
var message; var message;
var key; var key;
var executionContext;
key = new Clipperz.Crypto.AES_2.Key({key:aKey}); key = new Clipperz.Crypto.AES_2.Key({key:aKey});
nonce = someData.split(0, (128/8)); nonce = someData.split(0, (128/8));