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 "src/inspector/V8ValueCopier.h" | 5 #include "src/inspector/v8-value-copier.h" |
6 | 6 |
7 namespace v8_inspector { | 7 namespace v8_inspector { |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
11 static int kMaxDepth = 20; | 11 static int kMaxDepth = 20; |
12 static int kMaxCalls = 1000; | 12 static int kMaxCalls = 1000; |
13 | 13 |
14 class V8ValueCopier { | 14 class V8ValueCopier { |
15 public: | 15 public: |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 v8::Local<v8::Array> array, int index, | 101 v8::Local<v8::Array> array, int index, |
102 v8::Local<v8::Value> value) { | 102 v8::Local<v8::Value> value) { |
103 v8::TryCatch tryCatch(context->GetIsolate()); | 103 v8::TryCatch tryCatch(context->GetIsolate()); |
104 v8::Isolate::DisallowJavascriptExecutionScope throwJs( | 104 v8::Isolate::DisallowJavascriptExecutionScope throwJs( |
105 context->GetIsolate(), | 105 context->GetIsolate(), |
106 v8::Isolate::DisallowJavascriptExecutionScope::THROW_ON_FAILURE); | 106 v8::Isolate::DisallowJavascriptExecutionScope::THROW_ON_FAILURE); |
107 return array->CreateDataProperty(context, index, value); | 107 return array->CreateDataProperty(context, index, value); |
108 } | 108 } |
109 | 109 |
110 } // namespace v8_inspector | 110 } // namespace v8_inspector |
OLD | NEW |