Skip to content

Commit

Permalink
fix: Move back initMK to Array constructor
Browse files Browse the repository at this point in the history
finom committed Sep 20, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d752652 commit fdb656d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/array/index.js
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@ instanceMembers.constructor = function MatreshkaArray(length) {
throw matreshkaError('common:call_class');
}

initMK(this);

// repeat the same logic as for native Array
if (arguments.length === 1 && typeof length === 'number') {
this.length = length;

0 comments on commit fdb656d

Please sign in to comment.