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/ReflectObject.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/ReflectObject.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp index 8598c3f546..aa2b9b5cf5 100644 --- a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp @@ -62,7 +62,7 @@ void ReflectObject::initialize(GlobalObject& global_object) define_native_function(vm.names.setPrototypeOf, set_prototype_of, 2, attr); // 28.1.14 Reflect [ @@toStringTag ], https://tc39.es/ecma262/#sec-reflect-@@tostringtag - Object::define_property(vm.well_known_symbol_to_string_tag(), js_string(vm.heap(), vm.names.Reflect.as_string()), Attribute::Configurable); + Object::define_property(*vm.well_known_symbol_to_string_tag(), js_string(vm.heap(), vm.names.Reflect.as_string()), Attribute::Configurable); } ReflectObject::~ReflectObject() |