This commit is contained in:
Kevin Sawicki 2016-09-16 11:35:20 -07:00
parent 5d0f3534eb
commit e77d7e7f62

View file

@ -2,10 +2,10 @@ const timers = require('timers')
process.atomBinding = function (name) { process.atomBinding = function (name) {
try { try {
return process.binding('atom_' + process.type + '_' + name) return process.binding(`atom_${process.type}_${name}`)
} catch (error) { } catch (error) {
if (/No such module/.test(error.message)) { if (/No such module/.test(error.message)) {
return process.binding('atom_common_' + name) return process.binding(`atom_common_${name}`)
} else { } else {
throw error throw error
} }