Bugfix: Export pac from a FixedProfile without bypass list do not work.

If a fixedProfle without any bypass list, pac generation will fail. This cause
export pac failure, and switch profile which refer to this fixedprofile also not
work properly.
This commit is contained in:
Xiaolan.Lee 2014-12-23 18:10:26 +08:00
parent 1c9ac7fe71
commit 39d05ae018

View File

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