Changeset 233999 in webkit
- Timestamp:
- Jul 19, 2018 12:43:00 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r233998 r233999 1 2018-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 1 15 2018-07-19 Mark Lam <mark.lam@apple.com> 2 16 -
trunk/Source/JavaScriptCore/runtime/Error.cpp
r233998 r233999 240 240 { 241 241 VM& vm = callFrame->vm(); 242 const String& sourceURL = source.provider()->url(); 242 243 243 244 // The putDirect() calls below should really be put() so that they trigger materialization of … … 256 257 if (line != -1) 257 258 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)); 267 261 return error; 268 262 }
Note: See TracChangeset
for help on using the changeset viewer.