Skip to content

Commit f46147c

Browse files
remove includes() usage
1 parent 1d81e0d commit f46147c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/compute/src

packages/compute/src/vm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ VM.prototype.waitFor = function(status, options, callback) {
882882
timeout = Math.min(Math.max(options.timeout, 0), 600);
883883
}
884884

885-
if (!VALID_STATUSES.includes(status)) {
885+
if (VALID_STATUSES.indexOf(status) === -1) {
886886
throw new Error('Status passed to waitFor is invalid.');
887887
}
888888

0 commit comments

Comments
 (0)