Skip to content

Commit b78c811

Browse files
author
Sebastian Mayr
committed
Make USVString return a string instead of an array
The spec says "sequence of characters", so it was originally implemented as an array, but chances are it's used as a string everywhere anyways. Fixes #3.
1 parent 46f236f commit b78c811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ conversions["USVString"] = function (V) {
160160
}
161161
}
162162

163-
return U;
163+
return U.join('');
164164
};
165165

166166
conversions["Date"] = function (V, opts) {

0 commit comments

Comments
 (0)