mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Promise jobs should use it's saved Context value (#29)
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
61e58cb2a1
commit
13808ec66a
11 changed files with 55 additions and 28 deletions
|
|
@ -46,7 +46,7 @@ NEVER_INLINE bool eval(Escargot::Context* context, Escargot::String* str, Escarg
|
|||
#ifdef ESCARGOT_ENABLE_PROMISE
|
||||
Escargot::DefaultJobQueue* jobQueue = Escargot::DefaultJobQueue::get(context->jobQueue());
|
||||
while (jobQueue->hasNextJob()) {
|
||||
auto jobResult = jobQueue->nextJob()->run(state);
|
||||
auto jobResult = jobQueue->nextJob()->run();
|
||||
if (shouldPrintScriptResult) {
|
||||
if (!jobResult.result.isEmpty()) {
|
||||
printf("%s\n", jobResult.result.toString(state)->toUTF8StringData().data());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue