blob: f590706f53c73d1e013d46f9a7e5f840c579d9d4 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/bindings/union_base.h"
#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
namespace blink {
namespace bindings {
// static
void UnionBase::ThrowTypeErrorNotOfType(ExceptionState& exception_state,
const char* expected_type) {
exception_state.ThrowTypeError(
ExceptionMessages::ValueNotOfType(expected_type));
}
} // namespace bindings
} // namespace blink