Fix #13315: compare typeof node.method to var instead of literal "undefined" for safer uglification