Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var tryFoldConstantToString = function (node) {
if (node instanceof uglifyJs.AST_Constant) {
return node;
} else {
var foldedNode = uglifyAst.foldConstant(node);
if (foldedNode instanceof uglifyJs.AST_String) {
this.markDirty();
return foldedNode;
} else {
return node;
}
}
}.bind(this);