OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 v8::Local<v8::Object>::New(m_isolate, m_callFrame); | 148 v8::Local<v8::Object>::New(m_isolate, m_callFrame); |
149 v8::Local<v8::Function> setVariableValueFunction = | 149 v8::Local<v8::Function> setVariableValueFunction = |
150 v8::Local<v8::Function>::Cast( | 150 v8::Local<v8::Function>::Cast( |
151 callFrame | 151 callFrame |
152 ->Get(context, | 152 ->Get(context, |
153 toV8StringInternalized(m_isolate, "setVariableValue")) | 153 toV8StringInternalized(m_isolate, "setVariableValue")) |
154 .ToLocalChecked()); | 154 .ToLocalChecked()); |
155 v8::Local<v8::Value> argv[] = { | 155 v8::Local<v8::Value> argv[] = { |
156 v8::Local<v8::Value>(v8::Integer::New(m_isolate, scopeNumber)), | 156 v8::Local<v8::Value>(v8::Integer::New(m_isolate, scopeNumber)), |
157 variableName, newValue}; | 157 variableName, newValue}; |
158 return setVariableValueFunction->Call(context, callFrame, | 158 return setVariableValueFunction->Call(context, callFrame, arraysize(argv), |
159 V8_INSPECTOR_ARRAY_LENGTH(argv), argv); | 159 argv); |
160 } | 160 } |
161 | 161 |
162 } // namespace v8_inspector | 162 } // namespace v8_inspector |
OLD | NEW |