LibJS: Remove value_or from JS::Value
Some checks are pending
CI / Lagom (x86_64, Sanitizer_CI, false, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, true, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (arm64, Sanitizer_CI, false, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (x86_64, Fuzzers_CI, false, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (arm64, macos-15, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (x86_64, ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

This is no longer used after 3cf5053.
This commit is contained in:
Shannon Booth 2025-04-28 01:27:31 +12:00 committed by Tim Flynn
commit 9e44d86915
Notes: github-actions[bot] 2025-04-27 15:15:52 +00:00

View file

@ -379,15 +379,6 @@ public:
[[nodiscard]] String to_string_without_side_effects() const;
#if 0
Value value_or(Value fallback) const
{
if (is_special_empty_value())
return fallback;
return *this;
}
#endif
[[nodiscard]] GC::Ref<PrimitiveString> typeof_(VM&) const;
bool operator==(Value const&) const;