From beffff8db3d94a8af2e8b711d6be4151fa30cdd7 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 26 Apr 2018 01:01:31 +1200 Subject: [PATCH] fix: assignment to readonly property to allow running in strict mode (#270) * Replaced assignment to readonly Function.name with Object.defineProperty, as you can't assign to readonly properties in strict mode. * added check to make sure the name property is configurable before trying to configure it. This should allow compatibility with both strict mode and non-standard, pre-ES2015 implementations, such as in node 0.12.x * Removed extra blank newline.