Native frames always have an associated function. Keep the function
lookup in the native-frame branch to make the invariant explicit and to
avoid confusing static analysis.
Found by Coverity (CID
1681309).
continue;
}
- function = frame->native ? frame->function : NULL;
-
- if (function != NULL && function->bound != NULL) {
- continue;
- }
-
line = 0;
file = njs_str_value("");
}
} else {
+ function = frame->function;
+ njs_assert(function != NULL);
+
+ if (njs_slow_path(function->bound != NULL)) {
+ continue;
+ }
+
name.length = 0;
fhq.key_hash = NJS_ATOM_STRING_name;