| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2011 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 OwnPtr<v8::Handle<v8::Value>[]> argv = adoptArrayPtr(new v8::Handle<v8::Valu
e>[argc]); | 410 OwnPtr<v8::Handle<v8::Value>[]> argv = adoptArrayPtr(new v8::Handle<v8::Valu
e>[argc]); |
| 411 for (size_t i = 0; i < argc; ++i) | 411 for (size_t i = 0; i < argc; ++i) |
| 412 argv[i] = arguments->Get(i); | 412 argv[i] = arguments->Get(i); |
| 413 | 413 |
| 414 v8::Local<v8::Value> result = function->Call(receiver, argc, argv.get()); | 414 v8::Local<v8::Value> result = function->Call(receiver, argc, argv.get()); |
| 415 v8SetReturnValue(info, result); | 415 v8SetReturnValue(info, result); |
| 416 } | 416 } |
| 417 | 417 |
| 418 void V8InjectedScriptHost::suppressWarningsAndCallFunctionMethodCustom(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 418 void V8InjectedScriptHost::suppressWarningsAndCallFunctionMethodCustom(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 419 { | 419 { |
| 420 InjectedScriptHost* host = V8InjectedScriptHost::toNative(info.Holder()); | 420 // In sky we no longer have a fancy console with which to supress messages. |
| 421 ScriptDebugServer& debugServer = host->scriptDebugServer(); | |
| 422 debugServer.muteWarningsAndDeprecations(); | |
| 423 | |
| 424 callFunctionMethodCustom(info); | 421 callFunctionMethodCustom(info); |
| 425 | |
| 426 debugServer.unmuteWarningsAndDeprecations(); | |
| 427 } | 422 } |
| 428 | 423 |
| 429 } // namespace blink | 424 } // namespace blink |
| OLD | NEW |