Ignore:
Timestamp:
Mar 1, 2018, 2:24:33 AM (7 years ago)
Author:
Yusuke Suzuki
Message:

Unreviewed, fix exception check for ExceptionScope
https://bugs.webkit.org/show_bug.cgi?id=183175

  • jsc.cpp:

(GlobalObject::moduleLoaderFetch):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r229092 r229129  
    974974    // Here, now we consider moduleKey as the fileName.
    975975    Vector<char> utf8;
    976     if (!fetchModuleFromLocalFileSystem(moduleKey, utf8))
    977         return deferred->reject(exec, createError(exec, makeString("Could not open file '", moduleKey, "'.")));
     976    if (!fetchModuleFromLocalFileSystem(moduleKey, utf8)) {
     977        auto result = deferred->reject(exec, createError(exec, makeString("Could not open file '", moduleKey, "'.")));
     978        scope.releaseAssertNoException();
     979        return result;
     980    }
    978981
    979982    auto result = deferred->resolve(exec, JSSourceCode::create(vm, makeSource(stringFromUTF(utf8), SourceOrigin { moduleKey }, moduleKey, TextPosition(), SourceProviderSourceType::Module)));
Note: See TracChangeset for help on using the changeset viewer.