Only pass langVersion if snapshot (#561)

* Only pass langVersion if snapshot

`dart bin/update_idl_bindings.dart` is currently broken
when running locally because we use the web package path
to determine the language version to run the generator.
Because that's 3.10, use of private named parameters throws.
We could pass the generator version here instead, but that
logic is already in compileDartMain, so only pass the lang
version if we're running from snapshot.

CI avoided this because it's presumably running from snapshot.

* Use if branch instead
1 file changed
tree: e8dfe1fa1462f1c0c962022fe2308b5a3bd46a91
  1. .github/
  2. js_interop/
  3. js_interop_gen/
  4. third_party/
  5. web/
  6. web_generator/
  7. .gitignore
  8. LICENSE
  9. README.md
README.md
PackageDescriptionVersionCI
webLightweight browser API bindings built around JS interop.pub packagepackage:web
js_interopUtility functions and types for dart:js_interop and dart:js_interop_unsafe.pub packagepackage:js_interop
js_interop_genTools to generate Dart interfaces from TypeScript declaration files and Web IDL definitions.N/Apackage:js_interop_gen
web_generatorInternal tooling to generate the web package bindings.N/Apackage:web_generator