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

Skip to content

Commit 66901dc

Browse files
committed
JS: remove duplicate ES2015PromiseDefinition
1 parent 370a9e4 commit 66901dc

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

javascript/ql/src/semmle/javascript/Promises.qll

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44

55
import javascript
66

7-
/**
8-
* A promise object created by the standard ECMAScript 2015 `Promise` constructor.
9-
*/
10-
private class ES2015PromiseDefinition extends PromiseDefinition, DataFlow::NewNode {
11-
ES2015PromiseDefinition() { this = DataFlow::globalVarRef("Promise").getAnInstantiation() }
12-
13-
override DataFlow::FunctionNode getExecutor() { result = getCallback(0) }
14-
}
15-
167
/**
178
* A data flow edge from a promise reaction to the corresponding handler.
189
*/

javascript/ql/src/semmle/javascript/StandardLibrary.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class PromiseCandidate extends DataFlow::InvokeNode {
133133
/**
134134
* A promise object created by the standard ECMAScript 2015 `Promise` constructor.
135135
*/
136-
private class ES2015PromiseDefinition extends PromiseDefinition, DataFlow::NewNode {
136+
private class ES2015PromiseDefinition extends PromiseDefinition, DataFlow::NewNode {
137137
ES2015PromiseDefinition() { this = DataFlow::globalVarRef("Promise").getAnInstantiation() }
138138

139139
override DataFlow::FunctionNode getExecutor() { result = getCallback(0) }

0 commit comments

Comments
 (0)