[Common] JSON object freezed to prevent method overwrite
authorPiotr Kosko <p.kosko@samsung.com>
Wed, 27 Jan 2016 07:02:17 +0000 (08:02 +0100)
committerPiotr Kosko <p.kosko@samsung.com>
Wed, 27 Jan 2016 07:48:46 +0000 (08:48 +0100)
[Verificatio] Code compiles without errors.
   Checked that, JSON.parse issue is fixed with such solution.

Change-Id: I2e25876c787223e0e3d51d07c8080dfbabc491f7
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
src/tizen/tizen_api.js

index eaa502b34b52643e0573ac9e2285127b8732fc69..f80ac5c82e474a484da7c4c0d998860a54e0dc50 100644 (file)
@@ -473,3 +473,5 @@ exports.SimpleCoordinates = function(lat, lng) {
   });
 };
 exports.SimpleCoordinates.prototype.constructor = exports.SimpleCoordinates;
+
+Object.freeze(JSON);