From 3869ced4ba88e28ee6a46c270a9735e3fe64e997 Mon Sep 17 00:00:00 2001 From: Alessandro <4512372+Ale32bit@users.noreply.github.com> Date: Mon, 28 Jan 2019 17:21:22 +0100 Subject: [PATCH] Changed promise.success to promise.bind --- node.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.lua b/node.lua index 1706020..f51664f 100644 --- a/node.lua +++ b/node.lua @@ -192,7 +192,7 @@ local function promise(func, errorOnUncaught) -- errorOnUncaught is temporary promise.status = "pending" -- "resolved", "rejected" promise.value = nil - promise.success = function(func) + promise.bind = function(func) assert(type(func) == "function", "bad argument (expected function, got ".. type(func) ..")") promise.__then = func end