forked from mirrors/gecko-dev
This is a series of already-reviewed changes by @yodalee from #5025, rebased onto current servo master, with some fixups applied: * Fixed build errors/warnings from the latest rust upgrade. * Marked `tests/wpt/web-platform-tests/encoding/single-byte-decoder.html` as expecting CRASH. I could not verify locally that the new test annotation is correct, since the test appears to hang rather than crash on my Linux box. (Or maybe I just didn't wait long enough.) If this crash isn't consistent, or if it takes a long time, maybe we should skip this test instead? r? @jdm Source-Repo: https://github.com/servo/servo Source-Revision: 4846607e189a65baf8d9ac6566594b7893d07f12
12 lines
566 B
Text
12 lines
566 B
Text
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
/* https://encoding.spec.whatwg.org/#interface-textencoder */
|
|
[Constructor(optional DOMString utfLabel = "utf-8")/*, Exposed=Window,Worker */]
|
|
interface TextEncoder {
|
|
readonly attribute DOMString encoding;
|
|
[NewObject]
|
|
Uint8Array encode(optional USVString input = "");
|
|
};
|