]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
fix(custom-elements): use strict number casting
authorEvan You <yyx990803@gmail.com>
Mon, 14 Nov 2022 08:20:12 +0000 (16:20 +0800)
committerEvan You <yyx990803@gmail.com>
Mon, 14 Nov 2022 08:20:12 +0000 (16:20 +0800)
commit7d0c63ff4361e59e820441a24bf4fb2a93335a1e
treefe71f26b62270bf1a2a387eb22d424064271753d
parentefa2ac54d91e40bb2aa8801fecabbd19a4027ea4
fix(custom-elements): use strict number casting

close #4946
close #2598
close #2604

This commit also refactors internal usage of previous loose
implementation of `toNumber` to the stricter version where applicable.
Use of `looseToNumber` is preserved for `v-model.number` modifier to
ensure backwards compatibility and consistency with Vue 2 behavior.
packages/runtime-core/src/compat/instance.ts
packages/runtime-core/src/componentEmits.ts
packages/runtime-core/src/components/Suspense.ts
packages/runtime-core/src/index.ts
packages/runtime-core/src/warning.ts
packages/runtime-dom/src/components/Transition.ts
packages/runtime-dom/src/directives/vModel.ts
packages/shared/src/index.ts