V8TRYCATCH_VOID(double, endTime, static_cast<double>(info[1]->NumberValue()));
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, text, info[2]);
- Document& document = *toDocument(getExecutionContext());
+ Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
UseCounter::countDeprecation(document, UseCounter::TextTrackCueConstructor);
RefPtr<VTTCue> impl = VTTCue::create(document, startTime, endTime, text);