| Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| index 10dc9a605e61d45e4a642548af1f2ae46f80e0c5..018a1055b723731007241e03c9ba1486482cb989 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| @@ -750,8 +750,8 @@ PaymentRequest::PaymentRequest(ScriptState* scriptState,
|
| if (exceptionState.hadException())
|
| return;
|
|
|
| - if (details.hasError() && !details.error().isEmpty()) {
|
| - exceptionState.throwTypeError("Error value should be empty");
|
| + if (details.hasError()) {
|
| + exceptionState.throwTypeError("Error message not allowed in constructor");
|
| return;
|
| }
|
|
|
|
|