|this->|-qualify some templated member functions to help some buggy compilers along. No bug, r=bustage in a CLOSED TREE
☠☠ backed out by f36928548891 ☠ ☠
authorJeff Walden <jwalden@mit.edu>
Fri, 13 Apr 2018 14:30:23 -0700
changeset 413325 50cd4a60a402e9151d461651f565458c79059ec6
parent 413324 e233cb06379dfefa544fe2dbd4c82945b627cc70
child 413326 f36928548891d9029477f0733c71bb8e093e95f6
push id33843
push usernerli@mozilla.com
push dateSat, 14 Apr 2018 09:49:25 +0000
treeherdermozilla-central@37b8862d354e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|this->|-qualify some templated member functions to help some buggy compilers along. No bug, r=bustage in a CLOSED TREE
js/public/UbiNode.h
--- a/js/public/UbiNode.h
+++ b/js/public/UbiNode.h
@@ -752,24 +752,24 @@ class Node {
     template<typename T>
     bool is() const {
         return base()->typeName() == canonicalTypeName<T>();
     }
 
     template<typename T>
     T* as() const {
         MOZ_ASSERT(isLive());
-        MOZ_ASSERT(is<T>());
+        MOZ_ASSERT(this->is<T>());
         return static_cast<T*>(base()->ptr);
     }
 
     template<typename T>
     T* asOrNull() const {
         MOZ_ASSERT(isLive());
-        return is<T>() ? static_cast<T*>(base()->ptr) : nullptr;
+        return this->is<T>() ? static_cast<T*>(base()->ptr) : nullptr;
     }
 
     // If this node refers to something that can be represented as a JavaScript
     // value that is safe to expose to JavaScript code, return that value.
     // Otherwise return UndefinedValue(). JSStrings, JS::Symbols, and some (but
     // not all!) JSObjects can be exposed.
     JS::Value exposeToJS() const;