diff options
author | Jonathan Schwender <55576758+jschwe@users.noreply.github.com> | 2024-11-08 13:02:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 12:02:47 +0000 |
commit | fe58556c0bf37f9f13685c367341d598fcb52d33 (patch) | |
tree | f424f3d23e3c2dafe01a44b804d8afff54e6950c /components/script/dom/subtlecrypto.rs | |
parent | 39ef61c324da49308bc4e796d6f5ac1257dd9c9b (diff) | |
download | servo-fe58556c0bf37f9f13685c367341d598fcb52d33.tar.gz servo-fe58556c0bf37f9f13685c367341d598fcb52d33.zip |
Disable resources_for_tests in production (#34177)
Rather than relying on dead-code elimination to remove
the function in production builds, it is better if it is
never included in the first place.
On OpenHarmony we never want to include these files into the
binary, since we always bundle the test files into the `.hap` as part of the build process.
The original comment got the condition inverted and in all
normal builds the function will be checked as usual.
There shouldn't be any additional value in checking the
correctness of `resources_for_tests()` in production builds.
Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
Diffstat (limited to 'components/script/dom/subtlecrypto.rs')
0 files changed, 0 insertions, 0 deletions