Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8DocumentCustom.cpp

Issue 2272613003: binding: Retires ExceptionState::throwIfNeeded(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 std::unique_ptr<v8::Local<v8::Value>[]> params = wrapArrayUnique(new v8: :Local<v8::Value>[info.Length()]); 80 std::unique_ptr<v8::Local<v8::Value>[]> params = wrapArrayUnique(new v8: :Local<v8::Value>[info.Length()]);
81 for (int i = 0; i < info.Length(); i++) 81 for (int i = 0; i < info.Length(); i++)
82 params[i] = info[i]; 82 params[i] = info[i];
83 83
84 v8SetReturnValue(info, V8ScriptRunner::callFunction(v8::Local<v8::Functi on>::Cast(function), frame->document(), global, info.Length(), params.get(), inf o.GetIsolate())); 84 v8SetReturnValue(info, V8ScriptRunner::callFunction(v8::Local<v8::Functi on>::Cast(function), frame->document(), global, info.Length(), params.get(), inf o.GetIsolate()));
85 return; 85 return;
86 } 86 }
87 87
88 ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "Doc ument", info.Holder(), info.GetIsolate()); 88 ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "Doc ument", info.Holder(), info.GetIsolate());
89 document->open(enteredDOMWindow(info.GetIsolate())->document(), exceptionSta te); 89 document->open(enteredDOMWindow(info.GetIsolate())->document(), exceptionSta te);
90 if (exceptionState.throwIfNeeded())
haraken 2016/08/24 13:33:02 Don't you need to change this to: if (exception
Yuki 2016/08/24 13:36:20 Exactly speaking, info.GetReturnValue() will be se
91 return;
92 90
93 v8SetReturnValue(info, info.Holder()); 91 v8SetReturnValue(info, info.Holder());
94 } 92 }
95 93
96 } // namespace blink 94 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698