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/task-runner.h" | 5 #include "test/inspector/task-runner.h" |
6 | 6 |
7 namespace { | 7 namespace { |
8 | 8 |
9 const int kTaskRunnerIndex = 2; | 9 const int kTaskRunnerIndex = 2; |
10 | 10 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 .ToLocalChecked(); | 125 .ToLocalChecked(); |
126 | 126 |
127 v8::ScriptCompiler::Source scriptSource(source, origin); | 127 v8::ScriptCompiler::Source scriptSource(source, origin); |
128 v8::Local<v8::Script> script; | 128 v8::Local<v8::Script> script; |
129 if (!v8::ScriptCompiler::Compile(local_context, &scriptSource) | 129 if (!v8::ScriptCompiler::Compile(local_context, &scriptSource) |
130 .ToLocal(&script)) | 130 .ToLocal(&script)) |
131 return; | 131 return; |
132 v8::MaybeLocal<v8::Value> result; | 132 v8::MaybeLocal<v8::Value> result; |
133 result = script->Run(local_context); | 133 result = script->Run(local_context); |
134 } | 134 } |
| 135 |
| 136 // main to make compiler happy before other patch will be landed. |
| 137 int main(int argc, char* argv[]) { return 0; } |
OLD | NEW |