diff options
author | Moonchild <moonchild@palemoon.org> | 2020-11-12 11:58:39 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-11-12 11:58:39 +0000 |
commit | 4aeaea919588a04e0298cd08b829d8f6d8c276d3 (patch) | |
tree | 572a60bc67996fb4086c38d149c601aaeb35fddf /js/src/regexp | |
parent | 0ba1d49ae5564a9e0b141b656a8cdc68e7582baf (diff) | |
download | UXP-4aeaea919588a04e0298cd08b829d8f6d8c276d3.tar UXP-4aeaea919588a04e0298cd08b829d8f6d8c276d3.tar.gz UXP-4aeaea919588a04e0298cd08b829d8f6d8c276d3.tar.lz UXP-4aeaea919588a04e0298cd08b829d8f6d8c276d3.tar.xz UXP-4aeaea919588a04e0298cd08b829d8f6d8c276d3.zip |
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/regexp')
-rw-r--r-- | js/src/regexp/regexp-error.h | 1 | ||||
-rw-r--r-- | js/src/regexp/regexp-shim.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/js/src/regexp/regexp-error.h b/js/src/regexp/regexp-error.h index ef9d037dd..4b495f07d 100644 --- a/js/src/regexp/regexp-error.h +++ b/js/src/regexp/regexp-error.h @@ -5,6 +5,7 @@ #ifndef V8_REGEXP_REGEXP_ERROR_H_ #define V8_REGEXP_REGEXP_ERROR_H_ +#include "regexp-shim.h" namespace v8 { namespace internal { diff --git a/js/src/regexp/regexp-shim.h b/js/src/regexp/regexp-shim.h index 6b6a8c639..7677da084 100644 --- a/js/src/regexp/regexp-shim.h +++ b/js/src/regexp/regexp-shim.h @@ -957,7 +957,7 @@ class JSRegExp : public HeapObject { private: js::RegExpShared* inner() { - return value_.toGCThing()->as<js::RegExpShared>(); + return reinterpret_cast<js::RegExpShared*>(value_.toGCThing()); } }; |