Bug 1362205 - Annotate ScopeKinds in JS_GetTraceThingInfo(). r=sfink

MozReview-Commit-ID: 8Hti5sQAXGA

--HG--
extra : rebase_source : 88cc0c925a5c618a58f418b8d8545e51ddd640db
This commit is contained in:
Andrew McCreight 2017-05-05 09:26:29 -07:00
Родитель a8f10f24ec
Коммит 44283f57ae
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -464,6 +464,12 @@ JS_GetTraceThingInfo(char* buf, size_t bufsize, JSTracer* trc, void* thing,
break;
}
case JS::TraceKind::Scope:
{
js::Scope* scope = static_cast<js::Scope*>(thing);
snprintf(buf, bufsize, " %s", js::ScopeKindString(scope->kind()));
}
default:
break;
}