Files
node/lib
Ben Noordhuis 8383c4fe00 assert: support arrow functions in .throws()
`x instanceof f` where f is an arrow function throws a (spec-conforming)
"Function has non-object prototype 'undefined' in instanceof check"
exception.

Add a workaround so that it's possible to pass arrow functions as the
second argument to assert.throws().  The try/catch block is a little
jarring but swapping around the clauses in the if statements changes
the semantics too much.

Fixes: https://github.com/nodejs/node/issues/3275
PR-URL: https://github.com/nodejs/node/pull/3276
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2015-10-10 10:49:54 -07:00
..
2015-08-20 01:14:37 -07:00
2015-05-09 12:10:02 +09:00
2015-10-07 20:39:15 -07:00
2015-07-27 11:48:36 -07:00
2015-06-11 20:24:44 +02:00
2015-09-23 08:39:33 +10:00
2015-06-11 20:24:44 +02:00
2015-10-07 20:39:16 -07:00
2015-01-31 23:47:29 -05:00
2015-08-04 11:56:12 -07:00