Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[dumper] Explicitly coerce style names to strings.

  • Loading branch information...
commit a84ef06aee9208d8d10e76274a08b07844cb0e10 1 parent df1082e
@dervus dervus authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.