Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Fix bad defaults.encodeNames check.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 5, 2017
1 parent 28cefe0 commit de2f05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/builder.js
Expand Up @@ -506,7 +506,7 @@ function processCompileOpts(options, defaults) {
extend(opts, defaults);
extend(opts, options);

if (options.encodeNames && (!'encodeNames' in defaults))
if (options.encodeNames && !('encodeNames' in defaults))
throw new Error('encodeNames is only supported for buildStatic.');

if (typeof opts.production != 'boolean')
Expand Down

0 comments on commit de2f05b

Please sign in to comment.