When warning is a string, ctor is an optional function used to limit the generated stack trace.
warning
string
ctor