Skip to content

Commit a056a49

Browse files
committed
Bug 1501155 - Part 2: Use WTF-8 as BinAST string encoding. r=Yoric
1 parent 6ca00b0 commit a056a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/frontend/BinTokenReaderMultipart.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ BinTokenReaderMultipart::readHeader()
174174
if (byteLen == 2 && *current_ == 255 && *(current_ + 1) == 0) {
175175
atom = nullptr;
176176
} else {
177-
BINJS_TRY_VAR(atom, AtomizeUTF8Chars(cx_, (const char*)current_, byteLen));
177+
BINJS_TRY_VAR(atom, AtomizeWTF8Chars(cx_, (const char*)current_, byteLen));
178178
}
179179

180180
metadata->getAtom(i) = atom;

0 commit comments

Comments
 (0)