[Common] Verify if V8-specific code is available before calling it.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 14 Apr 2015 14:01:03 +0000 (16:01 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 14 Apr 2015 14:18:24 +0000 (16:18 +0200)
Change-Id: I0b0ec44ed748b8ca23cae6d9db8f64fa7a73bca1

src/utils/utils_api.js

index eef5fdcb57a858aacb18de268012ce0e2a312c69..409d91b92f55d967c63993b959b5972b412d5a41 100644 (file)
@@ -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() {