Browse Source

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

Fix crash when using ffi
Cheng Zhao 9 years ago
parent
commit
62604708d1
2 changed files with 4 additions and 3 deletions
  1. 1 1
      script/lib/config.py
  2. 3 2
      spec/modules-spec.coffee

+ 1 - 1
script/lib/config.py

@@ -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',

+ 3 - 2
spec/modules-spec.coffee

@@ -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'