spread_props_handler.getOwnPropertyDescriptor() — svelte Function Reference
Architecture documentation for the spread_props_handler.getOwnPropertyDescriptor() function in props.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 111f4c6e_bbd5_8c23_40c6_661ff872ccb6["spread_props_handler.getOwnPropertyDescriptor()"] 5094c0e2_0832_85dc_9c83_43e20571b709["props.js"] 111f4c6e_bbd5_8c23_40c6_661ff872ccb6 -->|defined in| 5094c0e2_0832_85dc_9c83_43e20571b709 cf9fafcc_74cf_96c6_92b8_d5c64c62efa0["is_function()"] 111f4c6e_bbd5_8c23_40c6_661ff872ccb6 -->|calls| cf9fafcc_74cf_96c6_92b8_d5c64c62efa0 style 111f4c6e_bbd5_8c23_40c6_661ff872ccb6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/reactivity/props.js lines 211–227
getOwnPropertyDescriptor(target, key) {
let i = target.props.length;
while (i--) {
let p = target.props[i];
if (is_function(p)) p = p();
if (typeof p === 'object' && p !== null && key in p) {
const descriptor = get_descriptor(p, key);
if (descriptor && !descriptor.configurable) {
// Prevent a "Non-configurability Report Error": The target is an array, it does
// not actually contain this property. If it is now described as non-configurable,
// the proxy throws a validation error. Setting it to true avoids that.
descriptor.configurable = true;
}
return descriptor;
}
}
},
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does spread_props_handler.getOwnPropertyDescriptor() do?
spread_props_handler.getOwnPropertyDescriptor() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/reactivity/props.js.
Where is spread_props_handler.getOwnPropertyDescriptor() defined?
spread_props_handler.getOwnPropertyDescriptor() is defined in packages/svelte/src/internal/client/reactivity/props.js at line 211.
What does spread_props_handler.getOwnPropertyDescriptor() call?
spread_props_handler.getOwnPropertyDescriptor() calls 1 function(s): is_function.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free