Is it possible that 0 is a good flag value? If not then I'd just grab `args[0]->Uint32Value()` (which will auto convert undefined to 0) and throw if that's the case.