Re: [heycam/webidl] does [Constructor] invocation require 'new' or not (generally)? (#62)

My understanding from reading the ES spec is that [[Call]] refers to: `fn()` while [[Construct]] refers to `new fn()`. Is that correct?

In that case, wouldn't it make sense to define the [[Call]] method of Interfaces as:

```
1. throw a TypeError
```

...and move the current definition of [[Call]] to [[Construct]]?

I'm probably missing something, if so, please enlighten me. Thanks. :)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/62#issuecomment-256036652

Received on Tuesday, 25 October 2016 13:38:14 UTC