2017-08-28 09:31:29 +00:00
|
|
|
package(
|
|
|
|
default_visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
licenses(["notice"]) # MIT
|
|
|
|
|
|
|
|
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
|
|
|
|
|
|
|
|
# Not a real polyfill. Do NOT use for anything, but tests.
|
|
|
|
closure_js_library(
|
|
|
|
name = "polyfill",
|
|
|
|
srcs = ["polyfill.js"],
|
2017-10-09 15:07:34 +00:00
|
|
|
suppress = [
|
2018-05-31 11:21:04 +00:00
|
|
|
"JSC_INVALID_OPERAND_TYPE",
|
2017-10-09 15:07:34 +00:00
|
|
|
"JSC_MISSING_JSDOC",
|
2018-05-31 11:21:04 +00:00
|
|
|
"JSC_STRICT_INEXISTENT_PROPERTY",
|
2017-10-09 15:07:34 +00:00
|
|
|
"JSC_TYPE_MISMATCH",
|
|
|
|
"JSC_UNKNOWN_EXPR_TYPE",
|
|
|
|
],
|
2017-08-28 09:31:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Do NOT use this artifact; it is for test purposes only.
|
|
|
|
closure_js_library(
|
|
|
|
name = "decode",
|
|
|
|
srcs = ["decode.js"],
|
2017-10-09 15:07:34 +00:00
|
|
|
suppress = [
|
|
|
|
"JSC_DUP_VAR_DECLARATION",
|
2021-01-18 09:56:39 +00:00
|
|
|
"JSC_INVALID_OCTAL_LITERAL",
|
2017-10-09 15:07:34 +00:00
|
|
|
"JSC_USELESS_BLOCK",
|
|
|
|
],
|
2017-08-28 09:31:29 +00:00
|
|
|
deps = [":polyfill"],
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_test")
|
|
|
|
|
|
|
|
closure_js_test(
|
|
|
|
name = "all_tests",
|
|
|
|
srcs = ["decode_test.js"],
|
|
|
|
deps = [
|
|
|
|
":decode",
|
|
|
|
":polyfill",
|
|
|
|
"@io_bazel_rules_closure//closure/library:testing",
|
|
|
|
],
|
|
|
|
)
|