Bug 1782190: Remove no longer used eslint definitions for js-shell module loader. r=jonco

The shell module loader was rewritten to C++ in bug 1637529.

"jsrtfuzzing-example.js" was changed to appease prettier, now that it's enabled.

Differential Revision: https://phabricator.services.mozilla.com/D153151
This commit is contained in:
André Bargull 2022-07-29 09:44:27 +00:00
parent 882b34a92f
commit 440ca8257a
5 changed files with 6 additions and 21 deletions

View File

@ -144,7 +144,6 @@ module.exports = {
"*.xhtml",
"*.xml",
"js/src/builtin/**/*.js",
"js/src/shell/**/*.js",
],
rules: {
// Curly brackets are required for all the tree via recommended.js,

View File

@ -43,7 +43,6 @@ dom/base/test/file_bug687859-inherit.js
# Ignore preprocessed files.
js/src/builtin/**/*.js
js/src/shell/**/*.js
# Ignore devtools debugger files
# Keep in sync with devtools/client/debugger/.prettierignore

View File

@ -1,16 +0,0 @@
/* 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/. */
"use strict";
module.exports = {
"plugins": [
"spidermonkey-js"
],
"overrides": [{
"files": ["*.js"],
"processor": "spidermonkey-js/processor",
}],
};

View File

@ -26,14 +26,17 @@ function JSFuzzIterate() {
try {
// This is a very simple UTF-16 string conversion for example purposes only.
let input = String.fromCharCode.apply(null, new Uint16Array(fuzzBuf.buffer));
let input = String.fromCharCode.apply(
null,
new Uint16Array(fuzzBuf.buffer)
);
// Pass the input through the JSON code as an example. Note that this
// particular example could probably be implemented more efficiently
// directly in fuzz-tests on a C++ level. This is purely for demonstration
// purposes.
print(JSON.stringify(JSON.parse(input)));
} catch(exc) {
} catch (exc) {
print(exc);
}
}

View File

@ -10,7 +10,7 @@
var path = require("path");
const selfHostedRegex = /js\/src\/(?:builtin|shell)\/.*?\.js$/;
const selfHostedRegex = /js\/src\/builtin\/.*?\.js$/;
const macroRegex = /\s*\#(if|ifdef|else|elif|endif|include|define|undef).*/;
module.exports = {