Skip to content
Browse files

[dumper] Explicitly coerce style names to strings.

  • Loading branch information...
1 parent df1082e commit a84ef06aee9208d8d10e76274a08b07844cb0e10 @dervus dervus committed Feb 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/js-yaml/dumper.js
View
2 lib/js-yaml/dumper.js
@@ -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);

0 comments on commit a84ef06

Please sign in to comment.
Something went wrong with that request. Please try again.