diff --git a/src/promise/src/Shared/Promise.lua b/src/promise/src/Shared/Promise.lua index 52fb6fc514..d38f9bd23d 100644 --- a/src/promise/src/Shared/Promise.lua +++ b/src/promise/src/Shared/Promise.lua @@ -22,7 +22,7 @@ Promise.__index = Promise @return boolean ]=] function Promise.isPromise(value) - return type(value) == "table" and value.ClassName == "Promise" + return type(value) == "table" and getmetatable(value) == Promise end --[=[