mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibJS: Make well-known symbol getters return NonnullGCPtr
None of these are ever null after the VM has been initialized, as proved by virtually every caller immediately dereferencing the raw pointer.
This commit is contained in:
parent
b84f8fb55b
commit
2555d7a36a
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/linusg
Commit: 2555d7a36a
Pull-request: https://github.com/SerenityOS/serenity/pull/18343
Reviewed-by: https://github.com/trflynn89 ✅
78 changed files with 122 additions and 121 deletions
|
@ -260,7 +260,7 @@ ThrowCompletionOr<void> PromiseConstructor::initialize(Realm& realm)
|
|||
define_native_function(realm, vm.names.reject, reject, 1, attr);
|
||||
define_native_function(realm, vm.names.resolve, resolve, 1, attr);
|
||||
|
||||
define_native_accessor(realm, *vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable);
|
||||
define_native_accessor(realm, vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable);
|
||||
|
||||
define_direct_property(vm.names.length, Value(1), Attribute::Configurable);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue