Forráskód Böngészése

ref #3361: fix transposition of variable declaration and usage

Brennan Chesley 12 éve
szülő
commit
8dec052350
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      lib/pipeline/matcher/Matcher2.js

+ 1 - 1
lib/pipeline/matcher/Matcher2.js

@@ -4,11 +4,11 @@
 var Matcher2 = module.exports = function Matcher2(pattern, nested){
 	// File: matcher.cpp lines: 83-92
 	this._pattern = pattern;
+	this.parser = new MatchExpressionParser();
 	var result = this.parser.parse(pattern);
 	if (result.code != ErrorCodes.OK)
 		return {code:16810, description:"bad query: " + result};
 	this._expression = result.result;
-	this.parser = new MatchExpressionParser();
 }, klass = Matcher2, base = Object, proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
 
 // DEPENDENCIES