summaryrefslogtreecommitdiffstats
path: root/dom/encoding/test/file_stringencoding.jsm
blob: cf554217027dd08e51593a5606b3fcfd30c37463 (plain)
1
2
3
4
5
6
this.EXPORTED_SYMBOLS = ['checkFromJSM'];

this.checkFromJSM = function checkFromJSM(is_op) {
  is_op(new TextDecoder().encoding, "utf-8", "JSM should have TextDecoder");
  is_op(new TextEncoder().encoding, "utf-8", "JSM should have TextEncoder");
}