JS: remove duplicate ES2015PromiseDefinition

This commit is contained in:
Asger F 2019-01-17 12:55:38 +00:00
Родитель 370a9e491c
Коммит 66901dc7b8
2 изменённых файлов: 1 добавлений и 10 удалений

Просмотреть файл

@ -4,15 +4,6 @@
import javascript
/**
* A promise object created by the standard ECMAScript 2015 `Promise` constructor.
*/
private class ES2015PromiseDefinition extends PromiseDefinition, DataFlow::NewNode {
ES2015PromiseDefinition() { this = DataFlow::globalVarRef("Promise").getAnInstantiation() }
override DataFlow::FunctionNode getExecutor() { result = getCallback(0) }
}
/**
* A data flow edge from a promise reaction to the corresponding handler.
*/

Просмотреть файл

@ -133,7 +133,7 @@ class PromiseCandidate extends DataFlow::InvokeNode {
/**
* A promise object created by the standard ECMAScript 2015 `Promise` constructor.
*/
private class ES2015PromiseDefinition extends PromiseDefinition, DataFlow::NewNode {
private class ES2015PromiseDefinition extends PromiseDefinition, DataFlow::NewNode {
ES2015PromiseDefinition() { this = DataFlow::globalVarRef("Promise").getAnInstantiation() }
override DataFlow::FunctionNode getExecutor() { result = getCallback(0) }