@@ -161,16 +161,16 @@ export function legacy_rest_props(props, exclude) {
161161 * that looks like `() => { dynamic: props }, { static: prop }, ..` and wraps
162162 * them so that the whole thing is passed to the component as the `$$props` argument.
163163 * @typedef {Record<string | symbol, unknown> } AnyProps
164- * @type {ProxyHandler<{ props: Array<AnyProps | (() => AnyProps)>, oldProps : AnyProps, destroyed: boolean }> }}
164+ * @type {ProxyHandler<{ props: Array<AnyProps | (() => AnyProps)>, old_props : AnyProps, destroyed: boolean }> }}
165165 */
166166const spread_props_handler = {
167167 get ( target , key ) {
168- if ( target . destroyed && key in target . oldProps ) return target . oldProps [ key ] ;
168+ if ( target . destroyed && key in target . old_props ) return target . old_props [ key ] ;
169169 let i = target . props . length ;
170170 while ( i -- ) {
171171 let p = target . props [ i ] ;
172172 if ( is_function ( p ) ) p = p ( ) ;
173- if ( typeof p === 'object' && p !== null && key in p ) return ( target . oldProps [ key ] = p [ key ] ) ;
173+ if ( typeof p === 'object' && p !== null && key in p ) return ( target . old_props [ key ] = p [ key ] ) ;
174174 }
175175 } ,
176176 set ( target , key , value ) {
@@ -180,7 +180,7 @@ const spread_props_handler = {
180180 if ( is_function ( p ) ) p = p ( ) ;
181181 const desc = get_descriptor ( p , key ) ;
182182 if ( desc && desc . set ) {
183- desc . set ( ( target . oldProps [ key ] = value ) ) ;
183+ desc . set ( ( target . old_props [ key ] = value ) ) ;
184184 return true ;
185185 }
186186 }
@@ -259,13 +259,13 @@ export function props(...props) {
259259 return new Proxy (
260260 {
261261 props,
262- oldProps : untrack ( ( ) => {
263- const oldProps = { } ;
262+ old_props : untrack ( ( ) => {
263+ const old_props = { } ;
264264 for ( let p of props ) {
265265 if ( typeof p === 'function' ) p = p ( ) ;
266- Object . assign ( oldProps , p ) ;
266+ Object . assign ( old_props , p ) ;
267267 }
268- return oldProps ;
268+ return old_props ;
269269 } ) ,
270270 get destroyed ( ) {
271271 return destroyed ;
0 commit comments