gecko/dom/encoding/test/file_stringencoding.jsm
Kyle Huey 45adfbf2c8 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00

7 lines
250 B
JavaScript

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");
}