287 void InjectedScript::inspectObject(Deprecated::ScriptValue value)
288 {
289 ASSERT(!hasNoValue());
290 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("inspectObject"), inspectorEnvironment()->functionCallHandler());
291 function.appendArgument(value);
292 RefPtr<InspectorValue> result;
293 makeCall(function, &result);
294 }
295
296 void InjectedScript::releaseObject(const String& objectId)
297 {
298 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("releaseObject"), inspectorEnvironment()->functionCallHandler());
299 function.appendArgument(objectId);
300 RefPtr<InspectorValue> result;
301 makeCall(function, &result);
302 }
303
304 void InjectedScript::releaseObjectGroup(const String& objectGroup)
305 {
306 ASSERT(!hasNoValue());
307 // JDK-8164960
308 if (hasNoValue())
309 return;
310
311 Deprecated::ScriptFunctionCall releaseFunction(injectedScriptObject(), ASCIILiteral("releaseObjectGroup"), inspectorEnvironment()->functionCallHandler());
312 releaseFunction.appendArgument(objectGroup);
313
314 bool hadException = false;
315 callFunctionWithEvalEnabled(releaseFunction, hadException);
316 ASSERT(!hadException);
317 }
318
319 } // namespace Inspector
320
|
287 void InjectedScript::inspectObject(Deprecated::ScriptValue value)
288 {
289 ASSERT(!hasNoValue());
290 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("inspectObject"), inspectorEnvironment()->functionCallHandler());
291 function.appendArgument(value);
292 RefPtr<InspectorValue> result;
293 makeCall(function, &result);
294 }
295
296 void InjectedScript::releaseObject(const String& objectId)
297 {
298 Deprecated::ScriptFunctionCall function(injectedScriptObject(), ASCIILiteral("releaseObject"), inspectorEnvironment()->functionCallHandler());
299 function.appendArgument(objectId);
300 RefPtr<InspectorValue> result;
301 makeCall(function, &result);
302 }
303
304 void InjectedScript::releaseObjectGroup(const String& objectGroup)
305 {
306 ASSERT(!hasNoValue());
307 // JDK-8164076
308 if (hasNoValue())
309 return;
310
311 Deprecated::ScriptFunctionCall releaseFunction(injectedScriptObject(), ASCIILiteral("releaseObjectGroup"), inspectorEnvironment()->functionCallHandler());
312 releaseFunction.appendArgument(objectGroup);
313
314 bool hadException = false;
315 callFunctionWithEvalEnabled(releaseFunction, hadException);
316 ASSERT(!hadException);
317 }
318
319 } // namespace Inspector
320
|