generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(amdTranspiler): Fix substiute for sap.ui.require errbacks
If the error callback is a function expression without a name, generate a name since the generated function definition must have one.
- Loading branch information
1 parent
bf0cefd
commit c52b53f
Showing
5 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sap.ui.require(["my/module"], (Module) => { | ||
return Module; | ||
}, function (err) { | ||
console.log(err); | ||
}); | ||
|
||
var err = function (err) { | ||
console.log(err); | ||
}; | ||
|
||
sap.ui.require(["my/module"], (Module) => { | ||
return Module; | ||
}, err); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+170 Bytes
(100%)
test/lib/linter/amdTranspiler/snapshots/transpiler.ts.snap
Binary file not shown.