resourceloader: Make JSMinPlus allow reserved words as property name (ES5)
authorEbrahim Byagowi <ebrahim@gnu.org>
Wed, 20 Feb 2019 23:41:08 +0000 (03:11 +0330)
committerEbrahim Byagowi <ebrahim@gnu.org>
Sun, 24 Feb 2019 22:13:57 +0000 (01:43 +0330)
commit2bc42c16b3513d5828f4c085207f419bb8cc2209
treeac74ca02f3bd813287ad06e856b66997f91eeecb
parent759634f4ffe0d6b68691374a52c54979f7d7ba5c
resourceloader: Make JSMinPlus allow reserved words as property name (ES5)

This makes parse of "var a = { true: 12 };" and "var a = { true: 12 };"
possible thus making JSMinPlus ES5 compatible.

Bug: T215280
Change-Id: I84bcacf26ab8900d09958b5d961cc40e1a046698
includes/libs/jsminplus.php
tests/phpunit/includes/libs/JavaScriptMinifierTest.php