Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Core: Tiny efficiency fix to jQuery.extend / jQuery.fn.extend #4246
Read target[name] only when it's needed.
In addition to doing the property read only when needed, this avoids a slow path
Thanks for a detailed bug report and a PR! This looks good to me both code-wise and taking into account the description of V8 internals. It also doesn't look like it could cause regressions in another browser.
It also doesn't change the gzipped minified size.