mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
956 B
45 lines
956 B
7 years ago
|
/*
|
||
|
* Promise built-in
|
||
|
*/
|
||
|
|
||
|
#include "duk_internal.h"
|
||
|
|
||
|
#if defined(DUK_USE_PROMISE_BUILTIN)
|
||
|
|
||
|
DUK_INTERNAL duk_ret_t duk_bi_promise_constructor(duk_hthread *thr) {
|
||
|
DUK_ERROR_TYPE(thr, "unimplemented");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
DUK_INTERNAL duk_ret_t duk_bi_promise_all(duk_hthread *thr) {
|
||
|
DUK_ERROR_TYPE(thr, "unimplemented");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
DUK_INTERNAL duk_ret_t duk_bi_promise_race(duk_hthread *thr) {
|
||
|
DUK_ERROR_TYPE(thr, "unimplemented");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
DUK_INTERNAL duk_ret_t duk_bi_promise_reject(duk_hthread *thr) {
|
||
|
DUK_ERROR_TYPE(thr, "unimplemented");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
DUK_INTERNAL duk_ret_t duk_bi_promise_resolve(duk_hthread *thr) {
|
||
|
DUK_ERROR_TYPE(thr, "unimplemented");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
DUK_INTERNAL duk_ret_t duk_bi_promise_catch(duk_hthread *thr) {
|
||
|
DUK_ERROR_TYPE(thr, "unimplemented");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
DUK_INTERNAL duk_ret_t duk_bi_promise_then(duk_hthread *thr) {
|
||
|
DUK_ERROR_TYPE(thr, "unimplemented");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
#endif /* DUK_USE_PROMISE_BUILTIN */
|