Merge pull request #1822 from hokein/crashpad-mac

Crashpad!
This commit is contained in:
Cheng Zhao 2015-06-04 22:11:14 +08:00
commit f54506acc0
12 changed files with 155 additions and 61 deletions

View file

@ -41,6 +41,10 @@ class CrashReporter
start()
getLastCrashReport: ->
if process.platform is 'darwin'
reports = binding._getUploadedReports()
return if reports.length > 0 then reports[0] else null
tmpdir =
if process.platform is 'win32'
os.tmpdir()