Skip to content

Commit

Permalink
test: Remove fixtures that are syntax errors
Browse files Browse the repository at this point in the history
"func()++" is actually an "Invalid left-hand side expression in postfix
operation"

This was detected by a CodeQL scan, which reported warnings
"SyntaxError: Assigning to rvalue"
  • Loading branch information
RandomByte committed Mar 27, 2024
1 parent 84566be commit 3c4d132
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 38 deletions.
3 changes: 0 additions & 3 deletions test/fixtures/transpiler/amd/Require_Callback_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ let val2 = sap.ui.require(["my/module"], (Module) => {
let val3 = -sap.ui.require(["my/module"], (Module) => {
return Module;
});
let val4 = sap.ui.require(["my/module"], (Module) => {
return Module;
})++;
let val5 = () => sap.ui.require(["my/module"], (Module) => {
return Module;
});
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/transpiler/amd/Require_Import_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const arr = [sap.ui.require(["my/module"]), sap.ui.require(["my/module"])];
let val = sap.ui.require(["my/module"]);
let val2 = sap.ui.require(["my/module"]) + 1;
let val3 = -sap.ui.require(["my/module"]);
let val4 = sap.ui.require(["my/module"])++;
let val5 = () => sap.ui.require(["my/module"]);

window.sap.ui.require(["my/module"]);
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/transpiler/amd/Require_Probing_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const arr = [sap.ui.require("my/module"), sap.ui.require("my/module")];
let val = sap.ui.require("my/module");
let val2 = sap.ui.require("my/module") + 1;
let val3 = -sap.ui.require("my/module");
let val4 = sap.ui.require("my/module")++;
let val5 = () => sap.ui.require("my/module");

window.sap.ui.require("my/module");
Expand Down
Loading

0 comments on commit 3c4d132

Please sign in to comment.