mirror of
https://github.com/servo/servo.git
synced 2025-09-19 11:20:09 +01:00
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:
parent
82de4c49f3
commit
d8510baa29
2 changed files with 10 additions and 6 deletions
|
@ -1,5 +0,0 @@
|
|||
[define.html]
|
||||
type: testharness
|
||||
[If constructor is arrow function, should throw a TypeError]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue