Expand the defines from JSTokenizer::__construct() placing them at the top of the...
authorPlatonides <platonides@users.mediawiki.org>
Tue, 19 Jul 2011 20:03:41 +0000 (20:03 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 19 Jul 2011 20:03:41 +0000 (20:03 +0000)
commit078057888a9726604316c299499a67e1141b4006
tree91189af0dd9c11de3aa898fe2d9dde5566f40fb3
parent6bb98564f5a14ca571f4cc37e08a6b3b4ec3de24
Expand the defines from JSTokenizer::__construct() placing them at the top of the file.
This fixes the Notices that would be produced if several JSTokenizer were instantiated.
jsminplus was added in r91591.

Defines code was generated with:
$js = new JSTokenizer();
foreach ($js->opTypeNames as $operand => $name) echo "define('OP_$name', '$operand');\n";
foreach ($js->keywords as $keyword) echo "define('KEYWORD_" . strtoupper($keyword) . "', '$keyword');\n";
includes/libs/jsminplus.php