Add module loader "resolve" hook for local file system to test the loader in JSC...
[WebKit-https.git] / Source / JavaScriptCore / runtime / JSInternalPromiseDeferred.cpp
index 9f88f19..4e67a8c 100644 (file)
@@ -66,4 +66,16 @@ JSInternalPromise* JSInternalPromiseDeferred::promise() const
     return jsCast<JSInternalPromise*>(Base::promise());
 }
 
+JSInternalPromise* JSInternalPromiseDeferred::resolve(ExecState* exec, JSValue value)
+{
+    Base::resolve(exec, value);
+    return promise();
+}
+
+JSInternalPromise* JSInternalPromiseDeferred::reject(ExecState* exec, JSValue reason)
+{
+    Base::reject(exec, reason);
+    return promise();
+}
+
 } // namespace JSC