Merge pull request #8157 from erik-krogh/lodash-clone

JS: add lodash.{clone, cloneDeep} as a clone step
This commit is contained in:
Erik Krogh Kristensen
2022-02-22 18:12:10 +01:00
committed by GitHub

View File

@@ -182,6 +182,8 @@ private class CloneStep extends PreCallGraphStep {
call = DataFlow::moduleImport(["clone", "fclone", "sort-keys", "camelcase-keys"]).getACall()
or
call = DataFlow::moduleMember("json-cycle", ["decycle", "retrocycle"]).getACall()
or
call = LodashUnderscore::member(["clone", "cloneDeep"]).getACall()
|
pred = call.getArgument(0) and
succ = call