From bug 15953 comment 5. We don't want lenient decoding in JSStringCreateWithUTF8CString(), and we want it to return 0 on error.
Created attachment 17263 [details] proposed patch
Comment on attachment 17263 [details] proposed patch r=me
Committed revision 27810.