Changeset 233999 in webkit


Ignore:
Timestamp:
Jul 19, 2018 12:43:00 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r233998.
https://bugs.webkit.org/show_bug.cgi?id=187815

Not needed. (Requested by mlam|a on #webkit).

Reverted changeset:

"Temporarily mitigate a bug where a source provider is null
when it shouldn't be."
https://bugs.webkit.org/show_bug.cgi?id=187812
https://trac.webkit.org/changeset/233998

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r233998 r233999  
     12018-07-19  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r233998.
     4        https://bugs.webkit.org/show_bug.cgi?id=187815
     5
     6        Not needed. (Requested by mlam|a on #webkit).
     7
     8        Reverted changeset:
     9
     10        "Temporarily mitigate a bug where a source provider is null
     11        when it shouldn't be."
     12        https://bugs.webkit.org/show_bug.cgi?id=187812
     13        https://trac.webkit.org/changeset/233998
     14
    1152018-07-19  Mark Lam  <mark.lam@apple.com>
    216
  • trunk/Source/JavaScriptCore/runtime/Error.cpp

    r233998 r233999  
    240240{
    241241    VM& vm = callFrame->vm();
     242    const String& sourceURL = source.provider()->url();
    242243   
    243244    // The putDirect() calls below should really be put() so that they trigger materialization of
     
    256257    if (line != -1)
    257258        error->putDirect(vm, vm.propertyNames->line, jsNumber(line));
    258 
    259     SourceProvider* provider = source.provider();
    260     // FIXME: Remove this ASSERT and null check when https://webkit.org/b/187811 is fixed.
    261     ASSERT(provider);
    262     if (LIKELY(provider)) {
    263         const String& sourceURL = provider->url();
    264         if (!sourceURL.isNull())
    265             error->putDirect(vm, vm.propertyNames->sourceURL, jsString(&vm, sourceURL));
    266     }
     259    if (!sourceURL.isNull())
     260        error->putDirect(vm, vm.propertyNames->sourceURL, jsString(&vm, sourceURL));
    267261    return error;
    268262}
Note: See TracChangeset for help on using the changeset viewer.