Unwrap function before calling IsConstructor

IsConstructor returns true for all wrappers that are callable. Wrapped
arrow functions are callable and thus IsConstructor will return true
if given one; however, if we unwrap the arrow function, IsConstructor
will return false. The latter is the correct behavior here.
This commit is contained in:
Connor Brewster 2017-06-08 23:37:56 -06:00
parent 82de4c49f3
commit d8510baa29
2 changed files with 10 additions and 6 deletions

View file

@ -1,5 +0,0 @@
[define.html]
type: testharness
[If constructor is arrow function, should throw a TypeError]
expected: FAIL