diff options
author | Linus Groh <mail@linusgroh.de> | 2021-06-25 18:37:14 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-25 22:01:23 +0100 |
commit | f4867572b7bdc13c3d868b297257c23de3d1aee0 (patch) | |
tree | cc59d47931548ee696a4e71c8ebe793529abd27b /Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp | |
parent | 3d5340d033dae3f459a777022c199daa32e4e17d (diff) | |
download | serenity-f4867572b7bdc13c3d868b297257c23de3d1aee0.zip |
LibJS: Change PropertyName(Symbol*) => PropertyName(Symbol&)
Requires a bunch of find-and-replace updates across LibJS, but
constructing a PropertyName from a nullptr Symbol* should not be
possible - let's enforce this at the compiler level instead of using
VERIFY() (and already dereference Symbol pointers at the call site).
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp b/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp index e71d37135e..beda396b18 100644 --- a/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp @@ -39,7 +39,7 @@ void PromiseConstructor::initialize(GlobalObject& global_object) define_native_function(vm.names.reject, reject, 1, attr); define_native_function(vm.names.resolve, resolve, 1, attr); - define_native_accessor(vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable); + define_native_accessor(*vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable); } // 27.2.3.1 Promise ( executor ), https://tc39.es/ecma262/#sec-promise-executor |