From: Kevin Sawicki Date: Fri, 2 Dec 2016 01:35:26 +0000 (-0800) Subject: Coerce features to string X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b99827540a8f6391aca8000f8aed1f78578f7f7;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Coerce features to string --- diff --git a/lib/common/parse-features-string.js b/lib/common/parse-features-string.js index a700617..d6682f6 100644 --- a/lib/common/parse-features-string.js +++ b/lib/common/parse-features-string.js @@ -2,6 +2,7 @@ // - `features` input string // - `emit` function(key, value) - called for each parsed KV module.exports = function parseFeaturesString (features, emit) { + features = `${features}` // split the string by ',' features.split(/,\s*/).forEach((feature) => { // expected form is either a key by itself or a key/value pair in the form of