| Index: Source/bindings/v8/V8Binding.cpp
|
| diff --git a/Source/bindings/v8/V8Binding.cpp b/Source/bindings/v8/V8Binding.cpp
|
| index 1be9f2596dc72aaadbcefc2ad136217f3b84210a..f60bf72cd90052701973a04d8b6ec0af20e1b51e 100644
|
| --- a/Source/bindings/v8/V8Binding.cpp
|
| +++ b/Source/bindings/v8/V8Binding.cpp
|
| @@ -82,6 +82,22 @@ v8::Handle<v8::Value> throwTypeError(const String& message, v8::Isolate* isolate
|
| return V8ThrowException::throwTypeError(message, isolate);
|
| }
|
|
|
| +void throwArityTypeErrorForMethod(const char* method, const char* type, unsigned expected, unsigned providedLeastNumMandatoryParams, v8::Isolate* isolate)
|
| +{
|
| + throwTypeError(ExceptionMessages::failedToExecute(method, type, ExceptionMessages::notEnoughArguments(expected, providedLeastNumMandatoryParams)), isolate);
|
| +}
|
| +
|
| +void throwArityTypeErrorForConstructor(const char* type, unsigned expected, unsigned providedLeastNumMandatoryParams, v8::Isolate* isolate)
|
| +{
|
| + throwTypeError(ExceptionMessages::failedToConstruct(type, ExceptionMessages::notEnoughArguments(expected, providedLeastNumMandatoryParams)), isolate);
|
| +}
|
| +
|
| +void throwArityTypeError(ExceptionState& exceptionState, unsigned expected, unsigned providedLeastNumMandatoryParams)
|
| +{
|
| + exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(expected, providedLeastNumMandatoryParams));
|
| + exceptionState.throwIfNeeded();
|
| +}
|
| +
|
| class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
|
| virtual void* Allocate(size_t size) OVERRIDE
|
| {
|
|
|