02:00
<Jack Works>
I was working on do expression yesterday, and I need to special handle "arguments" "new.taeget" "super()" "super.*" "super.*()"
02:01
<Jack Works>
I can use Arrow function when the do expression does not contain Yield (when will we have arrow version of generator function?)
02:02
<Jack Works>
And if it contains Yield, it must be a +Yield context, meanwhile super() must be illegal and `new.target` must not be any meaningful value
02:03
<Jack Works>
`Reflect.construct(Function, [], function*(){})` throws error so I think `new.target` must be empty inside generator function
02:04
<Jack Works>
And if it contains Yield, it must be a +Yield context, meanwhile super() must be illegal and `new.target` must not be any meaningful value
Therefore I think it's safe to skip the handling of super() and new.target