BUILD 996 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package(
  2. default_visibility = ["//visibility:public"],
  3. )
  4. licenses(["notice"]) # MIT
  5. load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
  6. # Not a real polyfill. Do NOT use for anything, but tests.
  7. closure_js_library(
  8. name = "polyfill",
  9. srcs = ["polyfill.js"],
  10. suppress = [
  11. "JSC_INVALID_OPERAND_TYPE",
  12. "JSC_MISSING_JSDOC",
  13. "JSC_STRICT_INEXISTENT_PROPERTY",
  14. "JSC_TYPE_MISMATCH",
  15. "JSC_UNKNOWN_EXPR_TYPE",
  16. ],
  17. )
  18. # Do NOT use this artifact; it is for test purposes only.
  19. closure_js_library(
  20. name = "decode",
  21. srcs = ["decode.js"],
  22. suppress = [
  23. "JSC_DUP_VAR_DECLARATION",
  24. "JSC_USELESS_BLOCK",
  25. ],
  26. deps = [":polyfill"],
  27. )
  28. load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_test")
  29. closure_js_test(
  30. name = "all_tests",
  31. srcs = ["decode_test.js"],
  32. deps = [
  33. ":decode",
  34. ":polyfill",
  35. "@io_bazel_rules_closure//closure/library:testing",
  36. ],
  37. )