phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 492 forks source link

Text: don't assign _testString from style parameter #706

Closed noocsharp closed 2 years ago

noocsharp commented 2 years ago

This PR (choose one or more, ✏️ delete others)

style._testString is accessed without checking whether style is defined, which will result in an error if style is undefined.

This is a bug because style is an optional parameter.