mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
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
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user