summaryrefslogtreecommitdiffstats
path: root/js/src/regexp/regexp-shim.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/regexp/regexp-shim.h')
-rw-r--r--js/src/regexp/regexp-shim.h2
1 files changed, 1 insertions, 1 deletions
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());
}
};