Query module IllegalInvocation

name
Illegal invocation
description
Attempting to invoke a method or an arrow function using ‘new’, or invoking a constructor as a function, will cause a runtime error.
kind
problem
problem.severity
error
id
js/illegal-invocation
tags
correctness language-features
precision
high

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

calls

Holds if call site cs may invoke function callee as specified by how.

illegalInvocation

Holds if call site cs may illegally invoke function callee as specified by how; calleeDesc describes what kind of function callee is.

isCallToFunction

Holds if ce is a call with at least one call target that isn’t a constructor.