Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit bf97b9e

Browse files
committed
remove spread operator for Node 4.5
Change-Id: I6b093a038858438d9359851f0102aaba9cc5a1aa
1 parent 56b33f9 commit bf97b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ module.exports = function(flags) {
3131
const out = jscomp(clone);
3232

3333
// hide weird GWT internals
34-
out.warnings = [...out.warnings];
35-
out.errors = [...out.errors];
34+
out.warnings = Array.prototype.slice.call(out.warnings);
35+
out.errors = Array.prototype.slice.call(out.errors);
3636

3737
return out;
3838
};

0 commit comments

Comments
 (0)