Fix undeclared/undefined `name` variable
Fix undeclared/undefined `name` variable

this throws an exception under iOS/tvOS

melonjs/melonJS,rlugojr/melonJS,rlugojr/melonJS,melonjs/melonJS,rlugojr/melonJS