Skip to content

Commit

Permalink
perf(core): prevent iteration of arrays that should not be observable (
Browse files Browse the repository at this point in the history
  • Loading branch information
fenduru authored and ztlevi committed Feb 14, 2018
1 parent 1c68288 commit 0663917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/observer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function defineReactive (
if (childOb) {
childOb.dep.depend()
}
if (Array.isArray(value)) {
if (Array.isArray(value) && Object.isExtensible(value)) {
dependArray(value)
}
}
Expand Down

0 comments on commit 0663917

Please sign in to comment.