From b725f76711e8350b3d52921c851e693145b7251c Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 4 Dec 2012 14:26:29 -0800 Subject: [PATCH] Make crypto.js work in both v4 and nodejs Change-Id: I7cb200d1626404898ed94b71972499864b2d99d9 Reviewed-by: Simon Hausmann --- tests/crypto.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/crypto.js b/tests/crypto.js index a7d9d9f..cd48bdb 100644 --- a/tests/crypto.js +++ b/tests/crypto.js @@ -1705,4 +1705,8 @@ function decrypt() { var d1 = +new Date encrypt() decrypt() + +if (typeof(print) === "undefined") + print = console.log; + print("done in", new Date - d1) -- 2.7.4