The following code will throw an error only for the name property. It could be fixed by specifying name property as writable in Object.create
name
Object.create
The name is reserved property of Function object to which you are trying to set it in. You cannot set it.
Function
documentation for name property is at MDN.