From: Pawel Andruszkiewicz
Date: Tue, 14 Apr 2015 14:01:03 +0000 (+0200)
Subject: [Common] Verify if V8-specific code is available before calling it.
X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~162
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7334b8d823887c92f6d115339f5d61ace43e5954;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Common] Verify if V8-specific code is available before calling it.
Change-Id: I0b0ec44ed748b8ca23cae6d9db8f64fa7a73bca1
---
diff --git a/src/utils/utils_api.js b/src/utils/utils_api.js
index eef5fdcb..409d91b9 100644
--- a/src/utils/utils_api.js
+++ b/src/utils/utils_api.js
@@ -1335,7 +1335,7 @@ var WebAPIException = function(code, message, name) {
});
this.constructor.prototype.__proto__ = Error.prototype;
- Error.captureStackTrace(this, this.constructor);
+ Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); // V8-specific code
};
WebAPIException.prototype.toString = function() {