Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbb1c8c

Browse files
committed
Remove old arguments-array position
1 parent ed33a6e commit bbb1c8c

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

javascript/ql/lib/semmle/javascript/dataflow/internal/DataFlowPrivate.qll

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,6 @@ newtype TParameterPosition =
790790
MkPositionalLowerBound(int n) { n = [0 .. getMaxArity()] } or
791791
MkThisParameter() or
792792
MkFunctionSelfReferenceParameter() or
793-
MkArgumentsArrayParameter() or // TODO: remove
794793
MkStaticArgumentArray() or
795794
MkDynamicArgumentArray()
796795

@@ -809,8 +808,6 @@ class ParameterPosition extends TParameterPosition {
809808

810809
predicate isFunctionSelfReference() { this = MkFunctionSelfReferenceParameter() }
811810

812-
predicate isArgumentsArray() { this = MkArgumentsArrayParameter() } // TODO: remove
813-
814811
predicate isStaticArgumentArray() { this = MkStaticArgumentArray() }
815812

816813
predicate isDynamicArgumentArray() { this = MkDynamicArgumentArray() }
@@ -824,8 +821,6 @@ class ParameterPosition extends TParameterPosition {
824821
or
825822
this.isFunctionSelfReference() and result = "function"
826823
or
827-
this = MkArgumentsArrayParameter() and result = "deprecated-arguments-array"
828-
or
829824
this.isStaticArgumentArray() and result = "static-argument-array"
830825
or
831826
this.isDynamicArgumentArray() and result = "dynamic-argument-array"

javascript/ql/lib/semmle/javascript/dataflow/internal/FlowSummaryPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private predicate positionName(ParameterPosition pos, string operand) {
3535
or
3636
pos.isFunctionSelfReference() and operand = "function"
3737
or
38-
pos.isArgumentsArray() and operand = "arguments-array"
38+
pos.isDynamicArgumentArray() and operand = "arguments-array" // TODO: remove and handle automatically
3939
or
4040
operand = pos.asPositionalLowerBound() + ".."
4141
}

0 commit comments

Comments
 (0)