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 bd8f4ad commit 6c95ab5Copy full SHA for 6c95ab5
src/util.js
@@ -245,7 +245,12 @@ export function getCustomComponentDefinitionDetails (def) {
245
}
246
247
export function getCustomFunctionDetails (func) {
248
- const string = Function.prototype.toString.call(func) || ''
+ const string = ''
249
+ try {
250
+ string = Function.prototype.toString.call(func)
251
+ } catch (e) {
252
+ // Func is probably a Proxy, which can break Function.prototype.toString()
253
+ }
254
const matches = string.match(/\(.*\)/)
255
const args = matches ? matches[0] : '(?)'
256
return {
0 commit comments