forked from mirrors/gecko-dev
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:
parent
882b34a92f
commit
440ca8257a
5 changed files with 6 additions and 21 deletions
|
|
@ -144,7 +144,6 @@ module.exports = {
|
||||||
"*.xhtml",
|
"*.xhtml",
|
||||||
"*.xml",
|
"*.xml",
|
||||||
"js/src/builtin/**/*.js",
|
"js/src/builtin/**/*.js",
|
||||||
"js/src/shell/**/*.js",
|
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
// Curly brackets are required for all the tree via recommended.js,
|
// Curly brackets are required for all the tree via recommended.js,
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ dom/base/test/file_bug687859-inherit.js
|
||||||
|
|
||||||
# Ignore preprocessed files.
|
# Ignore preprocessed files.
|
||||||
js/src/builtin/**/*.js
|
js/src/builtin/**/*.js
|
||||||
js/src/shell/**/*.js
|
|
||||||
|
|
||||||
# Ignore devtools debugger files
|
# Ignore devtools debugger files
|
||||||
# Keep in sync with devtools/client/debugger/.prettierignore
|
# Keep in sync with devtools/client/debugger/.prettierignore
|
||||||
|
|
|
||||||
|
|
@ -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",
|
|
||||||
}],
|
|
||||||
};
|
|
||||||
|
|
@ -26,14 +26,17 @@ function JSFuzzIterate() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// This is a very simple UTF-16 string conversion for example purposes only.
|
// 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
|
// Pass the input through the JSON code as an example. Note that this
|
||||||
// particular example could probably be implemented more efficiently
|
// particular example could probably be implemented more efficiently
|
||||||
// directly in fuzz-tests on a C++ level. This is purely for demonstration
|
// directly in fuzz-tests on a C++ level. This is purely for demonstration
|
||||||
// purposes.
|
// purposes.
|
||||||
print(JSON.stringify(JSON.parse(input)));
|
print(JSON.stringify(JSON.parse(input)));
|
||||||
} catch(exc) {
|
} catch (exc) {
|
||||||
print(exc);
|
print(exc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
var path = require("path");
|
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).*/;
|
const macroRegex = /\s*\#(if|ifdef|else|elif|endif|include|define|undef).*/;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue