Skip to content

Commit 47e2af6

Browse files
committed
release 2.0.3
1 parent f418791 commit 47e2af6

File tree

4 files changed

+28
-26
lines changed

4 files changed

+28
-26
lines changed

dist/php-parser.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! php-parser - BSD3 License - 2017-03-08 */
1+
/*! php-parser - BSD3 License - 2017-03-21 */
22

33
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
44
// shim for using process in browser
@@ -6259,11 +6259,13 @@ module.exports = {
62596259
if (this.token !== ')') {
62606260
while(this.token != this.EOF) {
62616261
var argument = this.read_argument_list();
6262-
result.push(argument);
6263-
if (argument.kind === 'variadic') {
6264-
wasVariadic = true;
6265-
} else if (wasVariadic) {
6266-
this.raiseError('Unexpected argument after a variadic argument');
6262+
if (argument) {
6263+
result.push(argument);
6264+
if (argument.kind === 'variadic') {
6265+
wasVariadic = true;
6266+
} else if (wasVariadic) {
6267+
this.raiseError('Unexpected argument after a variadic argument');
6268+
}
62676269
}
62686270
if (this.token === ',') {
62696271
this.next();

0 commit comments

Comments
 (0)