PDA

View Full Version : Support for Pipe Operator



ron.grimes
17 Apr 2020, 9:15 AM
Can anyone tell me if Sencha supports the pipe operator? When I use the following:



let plainTextPassword = SqlExplorer.currentServer.userPassword;

try {
plainTextPassword = SqlExplorer.currentServer.userPassword |> window.atob;
} catch (ignore) {}

the build process shows this error:



[ERR] C2001: Closure Compiler Error (primary expression expected) -- /Users/rongrimes/localsvn/ctreeApps/WebApps/SqlExplorer/app/view/LoginFormViewController.js:42:64
[ERR] C2001: Closure Compiler Error (Semi-colon expected) -- /Users/rongrimes/localsvn/ctreeApps/WebApps/SqlExplorer/app/view/LoginFormViewController.js:42:65


When I change the code to a normal function, I get no such error:



let plainTextPassword = SqlExplorer.currentServer.userPassword;

try {
plainTextPassword = atob(SqlExplorer.currentServer.userPassword);
} catch (ignore) {}