dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
982143b
)
jsminplus: Fix string concatenation in error message
author
Bryan Davis
<bd808@wikimedia.org>
Wed, 22 Oct 2014 03:53:03 +0000
(21:53 -0600)
committer
Krinkle
<krinklemail@gmail.com>
Wed, 22 Oct 2014 11:44:49 +0000
(11:44 +0000)
PHP concatenates strings with the `.` operator, not with `+`.
Change-Id: I628a55d714129a1345c37bfd31d8985bce177701
includes/libs/jsminplus.php
patch
|
blob
|
history
diff --git
a/includes/libs/jsminplus.php
b/includes/libs/jsminplus.php
index
ed0382c
..
99cf399
100644
(file)
--- a/
includes/libs/jsminplus.php
+++ b/
includes/libs/jsminplus.php
@@
-1017,7
+1017,7
@@
class JSParser
case KEYWORD_CATCH:
case KEYWORD_FINALLY:
- throw $this->t->newSyntaxError($tt
+
' without preceding try');
+ throw $this->t->newSyntaxError($tt
.
' without preceding try');
case KEYWORD_THROW:
$n = new JSNode($this->t);