Skip to content

Commit

Permalink
[dumper] Explicitly coerce style names to strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dervus committed Feb 8, 2013
1 parent df1082e commit a84ef06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/js-yaml/dumper.js
Expand Up @@ -57,7 +57,7 @@ function compileStyleMap(schema, map) {

for (index = 0, length = keys.length; index < length; index += 1) {
tag = keys[index];
style = map[tag];
style = String(map[tag]);

if ('!!' === tag.slice(0, 2)) {
tag = 'tag:yaml.org,2002:' + tag.slice(2);
Expand Down

0 comments on commit a84ef06

Please sign in to comment.