OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "test/inspector-protocol/task-runner.h" | 5 #include "test/inspector-protocol/task-runner.h" |
6 | 6 |
7 namespace { | 7 namespace { |
8 | 8 |
9 const int kTaskRunnerIndex = 2; | 9 const int kTaskRunnerIndex = 2; |
10 | 10 |
(...skipping 123 matching lines...) Loading... |
134 .ToLocalChecked(); | 134 .ToLocalChecked(); |
135 | 135 |
136 v8::ScriptCompiler::Source scriptSource(source, origin); | 136 v8::ScriptCompiler::Source scriptSource(source, origin); |
137 v8::Local<v8::Script> script; | 137 v8::Local<v8::Script> script; |
138 if (!v8::ScriptCompiler::Compile(local_context, &scriptSource) | 138 if (!v8::ScriptCompiler::Compile(local_context, &scriptSource) |
139 .ToLocal(&script)) | 139 .ToLocal(&script)) |
140 return; | 140 return; |
141 v8::MaybeLocal<v8::Value> result; | 141 v8::MaybeLocal<v8::Value> result; |
142 result = script->Run(local_context); | 142 result = script->Run(local_context); |
143 } | 143 } |
144 | |
145 // main to make compiler happy before other patch will be landed. | |
146 int main(int argc, char* argv[]) { return 0; } | |
OLD | NEW |