runtime/globals/encoding/
mod.rs

1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 */
6
7pub use decoder::TextDecoder;
8pub use encoder::TextEncoder;
9use ion::{ClassDefinition as _, Context, Object};
10
11mod decoder;
12mod encoder;
13
14pub fn define(cx: &Context, global: &Object) -> bool {
15	TextDecoder::init_class(cx, global).0 && TextEncoder::init_class(cx, global).0
16}