Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Proxy creation panicing on target not callable #307

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

mstoykov
Copy link
Contributor

fixes #306

@@ -848,7 +848,7 @@ func (p *proxyObject) assertConstructor() func(args []Value, newTarget *Object)

func (p *proxyObject) apply(call FunctionCall) Value {
if p.call == nil {
p.val.runtime.NewTypeError("proxy target is not a function")
panic(p.val.runtime.NewTypeError("proxy target is not a function"))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't find another occurrence of this in the code

@dop251 dop251 merged commit c206830 into dop251:master Jul 22, 2021
@mstoykov mstoykov deleted the fixProxyPanic branch July 22, 2021 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proxy creation panics on target not callable
2 participants