Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement TextDecoder #5058

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Fixed undefined reference to fatal in Decode

  • Loading branch information
KiChjang committed Feb 25, 2015
commit e5d1cc1088c4a65c64f4260b1efc8b985becda2d
@@ -67,7 +67,7 @@ impl<'a> TextDecoderMethods for JSRef<'a, TextDecoder> {
input: *mut JSObject,
options: &TextDecoderBinding::TextDecodeOptions) -> DOMString {
let stream: *const uint8_t = JS_GetUint8ArrayData(input, cx) as *const uint8_t;
let trap = if fatal { DecoderTrap::Strict } else { DecoderTrap::Replace };
let trap = if self.fatal { DecoderTrap::Strict } else { DecoderTrap::Replace };
unsafe { self.encoding.decode(stream as &[u8], trap).unwrap() };
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.