summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/MathObject.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-06-25 18:37:14 +0100
committerLinus Groh <mail@linusgroh.de>2021-06-25 22:01:23 +0100
commitf4867572b7bdc13c3d868b297257c23de3d1aee0 (patch)
treecc59d47931548ee696a4e71c8ebe793529abd27b /Userland/Libraries/LibJS/Runtime/MathObject.cpp
parent3d5340d033dae3f459a777022c199daa32e4e17d (diff)
downloadserenity-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/MathObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/MathObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/MathObject.cpp b/Userland/Libraries/LibJS/Runtime/MathObject.cpp
index b20491b797..cf15d6e280 100644
--- a/Userland/Libraries/LibJS/Runtime/MathObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/MathObject.cpp
@@ -71,7 +71,7 @@ void MathObject::initialize(GlobalObject& global_object)
define_property(vm.names.SQRT2, Value(M_SQRT2), 0);
// 21.3.1.9 Math [ @@toStringTag ], https://tc39.es/ecma262/#sec-math-@@tostringtag
- define_property(vm.well_known_symbol_to_string_tag(), js_string(vm.heap(), vm.names.Math.as_string()), Attribute::Configurable);
+ define_property(*vm.well_known_symbol_to_string_tag(), js_string(vm.heap(), vm.names.Math.as_string()), Attribute::Configurable);
}
MathObject::~MathObject()