| Index: Source/bindings/v8/V8Binding.h
|
| diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
|
| index 40cc21bd8b9e46463bdec4ae01e6fd96baa1b0d8..49d120fdc37c8b30e1564f9181acfb077f2df353 100644
|
| --- a/Source/bindings/v8/V8Binding.h
|
| +++ b/Source/bindings/v8/V8Binding.h
|
| @@ -204,6 +204,15 @@
|
| return stringResource;
|
| }
|
|
|
| + // FIXME: See the above comment.
|
| + inline String toWebCoreStringWithUndefinedOrNullCheck(v8::Handle<v8::Value> value)
|
| + {
|
| + V8StringResource<WithUndefinedOrNullCheck> stringResource(value);
|
| + if (!stringResource.prepare())
|
| + return String();
|
| + return stringResource;
|
| + }
|
| +
|
| // Convert a string to a V8 string.
|
| // Return a V8 external string that shares the underlying buffer with the given
|
| // WebCore string. The reference counting mechanism is used to keep the
|
|
|