| 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 #if !defined(_WIN32) && !defined(_WIN64) | 7 #if !defined(_WIN32) && !defined(_WIN64) |
| 8 #include <unistd.h> // NOLINT | 8 #include <unistd.h> // NOLINT |
| 9 #endif // !defined(_WIN32) && !defined(_WIN64) | 9 #endif // !defined(_WIN32) && !defined(_WIN64) |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 .ToLocalChecked(); | 129 .ToLocalChecked(); |
| 130 | 130 |
| 131 v8::ScriptCompiler::Source scriptSource(source, origin); | 131 v8::ScriptCompiler::Source scriptSource(source, origin); |
| 132 v8::Local<v8::Script> script; | 132 v8::Local<v8::Script> script; |
| 133 if (!v8::ScriptCompiler::Compile(local_context, &scriptSource) | 133 if (!v8::ScriptCompiler::Compile(local_context, &scriptSource) |
| 134 .ToLocal(&script)) | 134 .ToLocal(&script)) |
| 135 return; | 135 return; |
| 136 v8::MaybeLocal<v8::Value> result; | 136 v8::MaybeLocal<v8::Value> result; |
| 137 result = script->Run(local_context); | 137 result = script->Run(local_context); |
| 138 } | 138 } |
| 139 | |
| 140 // main to make compiler happy before other patch will be landed. | |
| 141 int main(int argc, char* argv[]) { return 0; } | |
| OLD | NEW |