| Index: test/webkit/const-without-initializer.js
|
| diff --git a/test/webkit/resources/standalone-post.js b/test/webkit/const-without-initializer.js
|
| similarity index 87%
|
| copy from test/webkit/resources/standalone-post.js
|
| copy to test/webkit/const-without-initializer.js
|
| index d157e78bfa084329e2ec1a9b7d6ad456e904c152..9eb036522a05920b2c1441b387002f91811d1752 100644
|
| --- a/test/webkit/resources/standalone-post.js
|
| +++ b/test/webkit/const-without-initializer.js
|
| @@ -21,6 +21,14 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -wasPostTestScriptParsed = true;
|
| +description(
|
| +'Tests that declaring a const variable without initializing has the correct behavior and does not crash'
|
| +);
|
|
|
| -finishJSTest();
|
| +const f;
|
| +
|
| +shouldBe('f', 'undefined');
|
| +
|
| +f = 10;
|
| +
|
| +shouldBe('f', 'undefined');
|
|
|