Skip to content

Commit

Permalink
[js] Make nqp::bindpos_i return the value it gets when storing into u…
Browse files Browse the repository at this point in the history
…int array
  • Loading branch information
pmurias committed Feb 21, 2018
1 parent 66f8da2 commit 2ca86be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vm/js/nqp-runtime/reprs.js
Expand Up @@ -1247,7 +1247,8 @@ class VMArray extends REPR {

$$bindpos_i(index, value) {
if (this._SC !== undefined) this.$$scwb();
return this.array[index < 0 ? this.array.length + index : index] = this.$$mangle(value);
this.array[index < 0 ? this.array.length + index : index] = this.$$mangle(value);
return value;
}

$$pop_i() {
Expand Down

0 comments on commit 2ca86be

Please sign in to comment.