Skip to content

Commit d15851e

Browse files
Fixing build problems.
1 parent 3e6dc9c commit d15851e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xpath/expressions/path-expr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class PathExpr extends Expression {
1717
let nodes1 = [];
1818
if (ctx.returnOnFirstMatch) {
1919
for (let i = 0; i < nodes.length; ++i) {
20-
nodes1 = this.rel.evaluate(ctx.clone(nodes, i)).nodeSetValue();
20+
nodes1 = this.rel.evaluate(ctx.clone(nodes, undefined, i)).nodeSetValue();
2121
if (nodes1.length > 0) {
2222
break;
2323
}
@@ -26,7 +26,7 @@ export class PathExpr extends Expression {
2626
}
2727

2828
for (let i = 0; i < nodes.length; ++i) {
29-
const nodes0 = this.rel.evaluate(ctx.clone(nodes, i)).nodeSetValue();
29+
const nodes0 = this.rel.evaluate(ctx.clone(nodes, undefined, i)).nodeSetValue();
3030
for (let ii = 0; ii < nodes0.length; ++ii) {
3131
nodes1.push(nodes0[ii]);
3232
}

0 commit comments

Comments
 (0)