Ignore:
Timestamp:
Aug 31, 2016, 7:11:43 PM (9 years ago)
Author:
Yusuke Suzuki
Message:

[JSC] linking and evaluating the modules are done in a sync manner
https://bugs.webkit.org/show_bug.cgi?id=161467

Reviewed by Saam Barati.

While the fetching and the other stages are done in an asynchronous manner,
linking and evaluating are done in a sync manner.
Just return the result value and do not wrap them with the internal promise.

  • builtins/ModuleLoaderPrototype.js:

(linkAndEvaluateModule):

  • runtime/Completion.cpp:

(JSC::linkAndEvaluateModule):

  • runtime/Completion.h:
  • runtime/JSModuleLoader.cpp:

(JSC::JSModuleLoader::linkAndEvaluateModule):

  • runtime/JSModuleLoader.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSModuleLoader.cpp

    r204330 r205276  
    115115}
    116116
    117 JSInternalPromise* JSModuleLoader::linkAndEvaluateModule(ExecState* exec, JSValue moduleKey)
     117JSValue JSModuleLoader::linkAndEvaluateModule(ExecState* exec, JSValue moduleKey)
    118118{
    119119    JSObject* function = jsCast<JSObject*>(get(exec, exec->propertyNames().builtinNames().linkAndEvaluateModulePublicName()));
     
    125125    arguments.append(moduleKey);
    126126
    127     return jsCast<JSInternalPromise*>(call(exec, function, callType, callData, this, arguments));
     127    return call(exec, function, callType, callData, this, arguments);
    128128}
    129129
Note: See TracChangeset for help on using the changeset viewer.