Merge pull request #101 from LeeXiaolan/empty-bypass-list-bug

Bugfix: Export pac from a FixedProfile without bypass list do not work.
This commit is contained in:
FelisCatus 2014-12-26 20:37:41 +08:00
commit f42ae975a7

View File

@ -253,7 +253,7 @@ module.exports = exports =
body = [
new U2.AST_Directive value: 'use strict'
]
if profile.bypassList
if profile.bypassList and profile.bypassList.length
conditions = null
for cond in profile.bypassList
condition = Conditions.compile cond