summaryrefslogtreecommitdiff
path: root/js/src/gc
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-11-12 11:58:39 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-12 11:58:39 +0000
commit4aeaea919588a04e0298cd08b829d8f6d8c276d3 (patch)
tree572a60bc67996fb4086c38d149c601aaeb35fddf /js/src/gc
parent0ba1d49ae5564a9e0b141b656a8cdc68e7582baf (diff)
downloaduxp-4aeaea919588a04e0298cd08b829d8f6d8c276d3.tar.gz
Issue #1679 - Part 2: Some small issues to address buildability.
- Explicitly |this| the Asserts in Cell.as<> - Unified deprot in regexp-error.h - Convert RegExpShared* inner() to a reinterpret_cast because for SOME reason .as<> no longer works after the reimport (which is a static cast)
Diffstat (limited to 'js/src/gc')
-rw-r--r--js/src/gc/Heap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/gc/Heap.h b/js/src/gc/Heap.h
index 2089415326..2f27702601 100644
--- a/js/src/gc/Heap.h
+++ b/js/src/gc/Heap.h
@@ -280,13 +280,13 @@ struct Cell
template<class T>
inline T* as() {
- MOZ_ASSERT(is<T>());
+ MOZ_ASSERT(this->is<T>());
return static_cast<T*>(this);
}
template <class T>
inline const T* as() const {
- MOZ_ASSERT(is<T>());
+ MOZ_ASSERT(this->is<T>());
return static_cast<const T*>(this);
}