Issue #1656 - Part 9: Single-line-comment style.

This commit is contained in:
Moonchild 2020-09-24 08:56:05 +00:00 • committed by roytam1
commit 9305760571
47 changed files with 0 additions and 47 deletions

View file

@ -1703,4 +1703,3 @@ function IdlTypedef(obj)
IdlTypedef.prototype = Object.create(IdlObject.prototype); IdlTypedef.prototype = Object.create(IdlObject.prototype);
}()); }());
// vim: set expandtab shiftwidth=4 tabstop=4 foldmarker=@{,@} foldmethod=marker:

View file

@ -2654,4 +2654,3 @@ policies and contribution forms [3].
test_environment.on_tests_ready(); test_environment.on_tests_ready();
})(); })();
// vim: set expandtab shiftwidth=4 tabstop=4:

View file

@ -1,5 +1,4 @@
// -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- // -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vim: set ts=2 et sw=2 tw=80:
// This Source Code is subject to the terms of the Mozilla Public License // This Source Code is subject to the terms of the Mozilla Public License
// version 2.0 (the "License"). You can obtain a copy of the License at // version 2.0 (the "License"). You can obtain a copy of the License at
// http://mozilla.org/MPL/2.0/. // http://mozilla.org/MPL/2.0/.

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(x, y) { function f(x, y) {
x(f); x(f);
assertEq(y, "hello"); assertEq(y, "hello");

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(L) { function f(L) {
do { do {
L: for (var i = 0; i < L; i++) { L: for (var i = 0; i < L; i++) {

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
document = { document = {
ready: function (x) { ready: function (x) {
this.exec = x; this.exec = x;

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
x = { a: 1, b: 2, c: 3, d: 4, e: 5, f: 6 }; x = { a: 1, b: 2, c: 3, d: 4, e: 5, f: 6 };
for (i in x) for (i in x)

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
var o1 = {p1: 1}; var o1 = {p1: 1};
var o2 = {p1: 1, p2: 2}; var o2 = {p1: 1, p2: 2};

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f0(p0) { function f0(p0) {
var v0; var v0;
do { do {

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(a) { function f(a) {
var k = a; var k = a;
T: for (;;) { T: for (;;) {

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function randomFloat () { function randomFloat () {
// note that in fuzz-testing, this can used as the size of a buffer to allocate. // note that in fuzz-testing, this can used as the size of a buffer to allocate.
// so it shouldn't return astronomic values. The maximum value 10000000 is already quite big. // so it shouldn't return astronomic values. The maximum value 10000000 is already quite big.

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function S() { function S() {
var t = new Float32Array(1); var t = new Float32Array(1);

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(x) { function f(x) {
delete ((x)++); delete ((x)++);

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f_int(x) { function f_int(x) {
return +x; return +x;
} }

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f_int(x, y) { function f_int(x, y) {
return x - y; return x - y;
} }

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(x) { function f(x) {
if (x) if (x)
return true; return true;

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function w(y) function w(y)
{ {

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(x, y) { function f(x, y) {
// Confuse the type analysis to not know the type of x. // Confuse the type analysis to not know the type of x.

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(x) { function f(x) {
if (x) { if (x) {
let y; let y;

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f([a, b, c, d]) { function f([a, b, c, d]) {
a = b; a = b;
return function () { return a + b + c + d; }; return function () { return a + b + c + d; };

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(a, b) { function f(a, b) {
var o = a; var o = a;
var q = b; var q = b;

View file

@ -1,5 +1,4 @@
// |jit-test| error: ReferenceError // |jit-test| error: ReferenceError
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(a, b, c) { function f(a, b, c) {
if (!a.__SSi) { if (!a.__SSi) {
throw Components.returnCode = Cr.NS_ERROR_INVALID_ARG; throw Components.returnCode = Cr.NS_ERROR_INVALID_ARG;

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(a) { function f(a) {
var x = { var x = {
g: function () { g: function () {

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function F() { function F() {
var T = { }; var T = { };

View file

@ -1,5 +1,4 @@
// |jit-test| error: ReferenceError // |jit-test| error: ReferenceError
// vim: set ts=8 sts=4 et sw=4 tw=99:
// Note: modified from original test, which used Uint32Array in place of Array, // Note: modified from original test, which used Uint32Array in place of Array,
// because the behavior has changed in a way that this will throw a TypeError // because the behavior has changed in a way that this will throw a TypeError

View file

@ -1,5 +1,4 @@
// |jit-test| error: TypeError // |jit-test| error: TypeError
// vim: set ts=8 sts=4 et sw=4 tw=99:
g = undefined; g = undefined;
function L() { } function L() { }

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function testFloat32Array(L) { function testFloat32Array(L) {
var f = new Float32Array(8); var f = new Float32Array(8);

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function testInt32Array(L) { function testInt32Array(L) {
var f = new Int32Array(8); var f = new Int32Array(8);

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function testInt8Array(L) { function testInt8Array(L) {
var f = new Int8Array(8); var f = new Int8Array(8);

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function A() { function A() {
this.x = 12; this.x = 12;

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function fillDense(a) { function fillDense(a) {
} }

View file

@ -1,5 +1,4 @@
// |jit-test| // |jit-test|
// vim: set ts=8 sts=4 et sw=4 tw=99:
function assertObjectsEqual(obj1, obj2) { function assertObjectsEqual(obj1, obj2) {
assertEq(obj1.a, obj2.a); assertEq(obj1.a, obj2.a);

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function testUKeyUObject(a, key1, key2, key3) { function testUKeyUObject(a, key1, key2, key3) {
a.a = function () { return this.d; } a.a = function () { return this.d; }

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function testUKeyUObject(a, key1, key2, key3) { function testUKeyUObject(a, key1, key2, key3) {
a.a = function () { return this.d; } a.a = function () { return this.d; }

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function testBadSetElems(obj, key) { function testBadSetElems(obj, key) {
obj[key] = 5; obj[key] = 5;

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f() { function f() {
return [[], [], [], []]; return [[], [], [], []];

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f() { function f() {
return [[], [], [], []]; return [[], [], [], []];

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function testSetTypedFloat32Array(k) { function testSetTypedFloat32Array(k) {
var ar = new Float32Array(8); var ar = new Float32Array(8);

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function testSetTypedInt8Array(k) { function testSetTypedInt8Array(k) {
var ar = new Int8Array(8); var ar = new Int8Array(8);

View file

@ -1,4 +1,3 @@
// vim: set ts=8 sts=4 et sw=4 tw=99:
function f(a) { function f(a) {
var x = a; var x = a;

View file

@ -1,5 +1,4 @@
// -*- Mode: Javascript; tab-width: 2; indent-tabs-mode: nil; js-indent-level: 2 -*- // -*- Mode: Javascript; tab-width: 2; indent-tabs-mode: nil; js-indent-level: 2 -*-
// vim: set ts=2 sw=2 et tw=78:
function clearSelection(w) function clearSelection(w)
{ {
var sel = (w ? w : window).getSelection(); var sel = (w ? w : window).getSelection();

View file

@ -154,5 +154,4 @@ function run_test()
} }
} }
// vim: set et ts=2 :

View file

@ -1,5 +1,4 @@
// -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- // -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vim: set ts=2 et sw=2 tw=80:
// This Source Code Form is subject to the terms of the Mozilla Public // 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, // 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/. // You can obtain one at http://mozilla.org/MPL/2.0/.

View file

@ -1850,4 +1850,3 @@ function IdlTypedef(obj)
IdlTypedef.prototype = Object.create(IdlObject.prototype); IdlTypedef.prototype = Object.create(IdlObject.prototype);
}()); }());
// vim: set expandtab shiftwidth=4 tabstop=4 foldmarker=@{,@} foldmethod=marker:

View file

@ -2679,4 +2679,3 @@ policies and contribution forms [3].
test_environment.on_tests_ready(); test_environment.on_tests_ready();
})(); })();
// vim: set expandtab shiftwidth=4 tabstop=4:

View file

@ -1,4 +1,3 @@
// vim: set ts=2 sw=2 sts=2 tw=80:
// This Source Code Form is subject to the terms of the Mozilla Public // 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 // 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/. // file, You can obtain one at http://mozilla.org/MPL/2.0/.

View file

@ -1,5 +1,4 @@
// -*- indent-tabs-mode: nil; js-indent-level: 2 -*- // -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
// vim: set ts=2 sw=2 sts=2 et tw=80: */
// This Source Code Form is subject to the terms of the Mozilla Public // 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 // 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/. // file, You can obtain one at http://mozilla.org/MPL/2.0/.