We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bbb5af commit 6ce19beCopy full SHA for 6ce19be
test/unit/specs/directives/public/for/for_spec.js
@@ -990,6 +990,17 @@ describe('v-for', function () {
990
done()
991
})
992
993
+
994
+ it('warning for frozen objects', function () {
995
+ new Vue({
996
+ el: document.createElement('div'),
997
+ template: '<div v-for="item in items">{{item.name}}</div>',
998
+ data: {
999
+ items: [Object.freeze({name:'hi'})]
1000
+ }
1001
+ })
1002
+ expect('Frozen v-for objects cannot be automatically tracked').toHaveBeenWarned()
1003
1004
1005
1006
/**
0 commit comments