Skip to content

Commit 3816366

Browse files
committed
Merge pull request vuejs#2165 from Gerhut/fix
Fix test about assigning to frozen object in chrome.
2 parents f57ea7c + dd4a27e commit 3816366

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/unit/specs/misc_spec.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,13 @@ describe('Misc', function () {
223223
})
224224
expect(vm.$el.textContent).toBe('hi frozen')
225225
vm.msg = 'ho'
226-
vm.frozen.msg = 'changed'
226+
try {
227+
vm.frozen.msg = 'changed'
228+
} catch (error) {
229+
if (!(error instanceof TypeError)) {
230+
throw error
231+
}
232+
}
227233
Vue.nextTick(function () {
228234
expect(vm.$el.textContent).toBe('ho frozen')
229235
done()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy