We'll now check for UTF8 conversion errors. <rdar://problem/41192690>
Created attachment 348836 [details] proposed patch.
Comment on attachment 348836 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=348836&action=review > Source/JavaScriptCore/jsc.cpp:1030 > + scope.throwException(exec, createError(exec, "Source exhausted encountered during UTF8 conversion")); I should remove the "encountered" here.
Comment on attachment 348836 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=348836&action=review r=me. >> Source/JavaScriptCore/jsc.cpp:1030 >> + scope.throwException(exec, createError(exec, "Source exhausted encountered during UTF8 conversion")); > > I should remove the "encountered" here. What does SourceExhausted error actually mean anyway?
(In reply to Keith Miller from comment #3) > What does SourceExhausted error actually mean anyway? From convertUTF8ToUTF16() in UTF8.cpp, I think it means that a multi-byte encoding got cut off (i.e. missing bytes).
Thanks for the review. Landed in r235627: <http://trac.webkit.org/r235627>.