| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index e247eb2c41c387509bb0777df3d5ace0c7f302ef..8269f27ed93c331f2e314e9abeb6c5ee8e2e03a0 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -7221,19 +7221,19 @@ String::Value::~Value() {
|
| }
|
|
|
|
|
| -#define DEFINE_ERROR(NAME) \
|
| - Local<Value> Exception::NAME(v8::Handle<v8::String> raw_message) { \
|
| - i::Isolate* isolate = i::Isolate::Current(); \
|
| - LOG_API(isolate, #NAME); \
|
| - ENTER_V8(isolate); \
|
| - i::Object* error; \
|
| - { \
|
| - i::HandleScope scope(isolate); \
|
| - i::Handle<i::String> message = Utils::OpenHandle(*raw_message); \
|
| - error = *isolate->factory()->New##NAME(message); \
|
| - } \
|
| - i::Handle<i::Object> result(error, isolate); \
|
| - return Utils::ToLocal(result); \
|
| +#define DEFINE_ERROR(NAME) \
|
| + Local<Value> Exception::NAME(v8::Handle<v8::String> raw_message) { \
|
| + i::Isolate* isolate = i::Isolate::Current(); \
|
| + LOG_API(isolate, #NAME); \
|
| + ENTER_V8(isolate); \
|
| + i::Object* error; \
|
| + { \
|
| + i::HandleScope scope(isolate); \
|
| + i::Handle<i::String> message = Utils::OpenHandle(*raw_message); \
|
| + error = *isolate->factory()->NewError("$" #NAME, message); \
|
| + } \
|
| + i::Handle<i::Object> result(error, isolate); \
|
| + return Utils::ToLocal(result); \
|
| }
|
|
|
| DEFINE_ERROR(RangeError)
|
|
|