Merge pull request #2887 from atom/fix-ffi-crash
Fix crash when using ffi
This commit is contained in:
commit
62604708d1
2 changed files with 4 additions and 3 deletions
|
@ -8,7 +8,7 @@ import sys
|
||||||
|
|
||||||
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
|
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
|
||||||
'http://github-janky-artifacts.s3.amazonaws.com/libchromiumcontent'
|
'http://github-janky-artifacts.s3.amazonaws.com/libchromiumcontent'
|
||||||
LIBCHROMIUMCONTENT_COMMIT = '8482fe555913dea3bde8a74f754524e2cfb02bc5'
|
LIBCHROMIUMCONTENT_COMMIT = '04523758cda2a96d2454f9056fb1fb9a1c1f95f1'
|
||||||
|
|
||||||
PLATFORM = {
|
PLATFORM = {
|
||||||
'cygwin': 'win32',
|
'cygwin': 'win32',
|
||||||
|
|
|
@ -23,9 +23,10 @@ describe 'third-party module', ->
|
||||||
done()
|
done()
|
||||||
|
|
||||||
describe 'ffi', ->
|
describe 'ffi', ->
|
||||||
return if process.platform is 'darwin'
|
|
||||||
it 'does not crash', ->
|
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', ->
|
describe 'q', ->
|
||||||
Q = require 'q'
|
Q = require 'q'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue