Skip to content

Commit cb2bcfa

Browse files
Merge pull request #707 from bigopon/fix-array-patching
fix(array-observation): make marker non enumerable
1 parent bbdb5da commit cb2bcfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array-observation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (arrayProto.__au_patched__) {
1919
+ ' Please see https://github.com/aurelia/cli/pull/906 if you are using webpack.'
2020
);
2121
} else {
22-
arrayProto.__au_patched__ = 1;
22+
Reflect.defineProperty(arrayProto, '__au_patched__', { value: 1 });
2323
arrayProto.pop = function() {
2424
let notEmpty = this.length > 0;
2525
let methodCallResult = pop.apply(this, arguments);

0 commit comments

Comments
 (0)