@@ -24799,8 +24799,8 @@ void RunStreamingTest(const char** chunks,
2479924799 v8::HandleScope scope(isolate);
2480024800 v8::TryCatch try_catch(isolate);
2480124801
24802- v8::ScriptCompiler::StreamedSource source(new TestSourceStream(chunks),
24803- encoding);
24802+ v8::ScriptCompiler::StreamedSource source(
24803+ v8::base::make_unique<TestSourceStream>(chunks), encoding);
2480424804 v8::ScriptCompiler::ScriptStreamingTask* task =
2480524805 v8::ScriptCompiler::StartStreamingScript(isolate, &source);
2480624806
@@ -25071,7 +25071,7 @@ TEST(StreamingWithDebuggingEnabledLate) {
2507125071 v8::TryCatch try_catch(isolate);
2507225072
2507325073 v8::ScriptCompiler::StreamedSource source(
25074- new TestSourceStream(chunks),
25074+ v8::base::make_unique< TestSourceStream> (chunks),
2507525075 v8::ScriptCompiler::StreamedSource::ONE_BYTE);
2507625076 v8::ScriptCompiler::ScriptStreamingTask* task =
2507725077 v8::ScriptCompiler::StartStreamingScript(isolate, &source);
@@ -25179,7 +25179,7 @@ TEST(StreamingWithHarmonyScopes) {
2517925179
2518025180 v8::TryCatch try_catch(isolate);
2518125181 v8::ScriptCompiler::StreamedSource source(
25182- new TestSourceStream(chunks),
25182+ v8::base::make_unique< TestSourceStream> (chunks),
2518325183 v8::ScriptCompiler::StreamedSource::ONE_BYTE);
2518425184 v8::ScriptCompiler::ScriptStreamingTask* task =
2518525185 v8::ScriptCompiler::StartStreamingScript(isolate, &source);
0 commit comments