[Utils] Freeze all objects to prevent any modifications.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 15 Oct 2015 06:53:30 +0000 (08:53 +0200)
committerHyunjin Park <hj.na.park@samsung.com>
Thu, 15 Oct 2015 11:16:02 +0000 (20:16 +0900)
Change-Id: Iaa7db682c5cbe111e436e39db157b33e78bf3c83
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/utils/utils_api.js

index 4bb68540adb95c7c6d0327ddcad5a2f294cfcb94..bb913c71ffcf5400c588d912e4156bd49cbed6ac 100755 (executable)
@@ -1598,3 +1598,8 @@ Utils.prototype.NativeBridge = NativeBridge;
 var native_ = new NativeManager(extension);
 
 exports = new Utils();
+
+Object.freeze(Utils.prototype);
+Object.freeze(NativeManager.prototype);
+Object.freeze(NativeBridge.prototype);
+Object.freeze(exports);