return copy of array rather than reference (#971)

This commit is contained in:
Anthony Dresser
2018-03-23 14:27:29 -07:00
committed by GitHub
parent 2eeb2b0d71
commit a226e90c38

View File

@@ -131,6 +131,6 @@ export const TaskRegistry: ITaskRegistry = new class implements ITaskRegistry {
}
getTasks(): string[] {
return this._tasks;
return this._tasks.slice(0);
}
};