Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/cucumber/cucumber-js into…
Browse files Browse the repository at this point in the history
… v1.2.2-chimp
  • Loading branch information
lgandecki committed Aug 11, 2016
2 parents 261f138 + f43bea7 commit ae7ae96
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
### [master (unreleased)](https://github.com/cucumber/cucumber-js/compare/v1.2.1...master)
### [master (unreleased)](https://github.com/cucumber/cucumber-js/compare/v1.2.2...master)

### [1.2.2](https://github.com/cucumber/cucumber-js/compare/v1.2.1...v1.2.2) (2016-08-05)

#### Bug Fixes

* Fix error when stack trace has no frames (#610) (Jan Molak)

### [1.2.1](https://github.com/cucumber/cucumber-js/compare/v1.2.0...v1.2.1) (2016-07-01)

Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/runtime/stack_trace_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function isFrameInCucumber(frame) {

function filter() {
currentFilter = chain.filter.attach(function (error, frames) {
if (isFrameInCucumber(frames[0])) {
if (frames.length > 0 && isFrameInCucumber(frames[0])) {
return frames;
}
return frames.filter(_.negate(isFrameInCucumber));
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"gherkin",
"tests"
],
"version": "1.2.1",
"version": "1.2.2",
"homepage": "http://github.com/cucumber/cucumber-js",
"author": "Julien Biezemans <[email protected]> (http://jbpros.net)",
"contributors": [
Expand Down Expand Up @@ -86,7 +86,8 @@
"John McLaughlin <[email protected]>",
"Josh Goldberg <[email protected]>",
"Artur Pomadowski <[email protected]>",
"Benjamín Eidelman <[email protected]>"
"Benjamín Eidelman <[email protected]>",
"Jan Molak <[email protected]>"
],
"repository": {
"type": "git",
Expand Down
17 changes: 13 additions & 4 deletions release/cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,7 @@ function isFrameInCucumber(frame) {

function filter() {
currentFilter = chain.filter.attach(function (error, frames) {
if (isFrameInCucumber(frames[0])) {
if (frames.length > 0 && isFrameInCucumber(frames[0])) {
return frames;
}
return frames.filter(_.negate(isFrameInCucumber));
Expand Down Expand Up @@ -3818,6 +3818,9 @@ var objectKeys = Object.keys || function (obj) {
},{"util/":178}],68:[function(require,module,exports){
module.exports = balanced;
function balanced(a, b, str) {
if (a instanceof RegExp) a = maybeMatch(a, str);
if (b instanceof RegExp) b = maybeMatch(b, str);

var r = range(a, b, str);

return r && {
Expand All @@ -3829,6 +3832,11 @@ function balanced(a, b, str) {
};
}

function maybeMatch(reg, str) {
var m = str.match(reg);
return m ? m[0] : null;
}

balanced.range = range;
function range(a, b, str) {
var begs, beg, left, right, result;
Expand All @@ -3840,7 +3848,7 @@ function range(a, b, str) {
begs = [];
left = str.length;

while (i < str.length && i >= 0 && ! result) {
while (i >= 0 && !result) {
if (i == ai) {
begs.push(i);
ai = str.indexOf(a, i + 1);
Expand Down Expand Up @@ -37771,7 +37779,7 @@ module.exports={
"gherkin",
"tests"
],
"version": "1.2.1",
"version": "1.2.2",
"homepage": "http://github.com/cucumber/cucumber-js",
"author": "Julien Biezemans <[email protected]> (http://jbpros.net)",
"contributors": [
Expand Down Expand Up @@ -37849,7 +37857,8 @@ module.exports={
"John McLaughlin <[email protected]>",
"Josh Goldberg <[email protected]>",
"Artur Pomadowski <[email protected]>",
"Benjamín Eidelman <[email protected]>"
"Benjamín Eidelman <[email protected]>",
"Jan Molak <[email protected]>"
],
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions release/cucumber.js.map

Large diffs are not rendered by default.

0 comments on commit ae7ae96

Please sign in to comment.