From: Pawel Andruszkiewicz Date: Thu, 15 Oct 2015 06:53:30 +0000 (+0200) Subject: [Utils] Freeze all objects to prevent any modifications. X-Git-Tag: submit/tizen/20151026.073646^2^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6d508df9b0ef2387f3b64ec7c76d225ca98fabe;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Utils] Freeze all objects to prevent any modifications. Change-Id: Iaa7db682c5cbe111e436e39db157b33e78bf3c83 Signed-off-by: Pawel Andruszkiewicz --- diff --git a/src/utils/utils_api.js b/src/utils/utils_api.js index 4bb68540..bb913c71 100755 --- a/src/utils/utils_api.js +++ b/src/utils/utils_api.js @@ -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);