Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
/* Any copyright is dedicated to the Public Domain.
const { jsesc } = ChromeUtils.importESModule(
"resource://gre/modules/third_party/jsesc/jsesc.mjs"
);
function run_test() {
Assert.equal(jsesc("teééést", { lowercaseHex: true }), "te\\xe9\\xe9\\xe9st");
Assert.equal(
jsesc("teééést", { lowercaseHex: false }),
"te\\xE9\\xE9\\xE9st"
);
}