Flags should be delivered in format of string, not as array of strings. It is clearly explained here.
It doesn't throw an error, because there is single element in the array and Java Engine returns toString() value of flags. If it were more elements in the array, that would lead to SyntaxError.
Flags should be delivered in format of string, not as array of strings. It is clearly explained here. It doesn't throw an error, because there is single element in the array and Java Engine returns toString() value of flags. If it were more elements in the array, that would lead to SyntaxError.
Thanks to @gordonmzhu, for spotting it!