Merge pull request #2887 from atom/fix-ffi-crash

Fix crash when using ffi
This commit is contained in:
Cheng Zhao 2015-09-24 15:39:16 +08:00
commit 62604708d1
2 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@ import sys
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
'http://github-janky-artifacts.s3.amazonaws.com/libchromiumcontent'
LIBCHROMIUMCONTENT_COMMIT = '8482fe555913dea3bde8a74f754524e2cfb02bc5'
LIBCHROMIUMCONTENT_COMMIT = '04523758cda2a96d2454f9056fb1fb9a1c1f95f1'
PLATFORM = {
'cygwin': 'win32',

View file

@ -23,9 +23,10 @@ describe 'third-party module', ->
done()
describe 'ffi', ->
return if process.platform is 'darwin'
it 'does not crash', ->
require 'ffi'
ffi = require 'ffi'
libm = ffi.Library('libm', ceil: [ 'double', [ 'double' ] ])
assert.equal libm.ceil(1.5), 2
describe 'q', ->
Q = require 'q'