function Promise.prototype.await(J)return awaitHelper(J:awaitStatus())end Promise.prototype.Await=Promise.prototype.await local function J(J,...)if J~=Promise.Status.Resolved then error(...==nil and"\069\120\112\101\099\116\101\100 \080\114\111\109\105\115\101 \114\101\106\101\099\116\101\100 \119\105\116\104 \110\111 \118\097\108\117\101\046"or...,3)end return...end

function Promise.prototype:await()
	return awaitHelper(self:awaitStatus())
end
Promise.prototype.Await = Promise.prototype.await

local function expectHelper(status, ...)
	if status ~= Promise.Status.Resolved then
		error((...) == nil and "Expected Promise rejected with no value." or (...), 3)
	end

	return ...
end
