| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 1ef9703be013bb7790d1c1f494bb60ad0ea52e53..383fd4c783595e6260d44a8445e136ae2af55208 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -6,6 +6,7 @@
|
| #define V8_OBJECTS_H_
|
|
|
| #include <iosfwd>
|
| +#include <memory>
|
|
|
| #include "src/assert-scope.h"
|
| #include "src/bailout-reason.h"
|
| @@ -9051,11 +9052,10 @@ class String: public Name {
|
| // ROBUST_STRING_TRAVERSAL invokes behaviour that is robust This means it
|
| // handles unexpected data without causing assert failures and it does not
|
| // do any heap allocations. This is useful when printing stack traces.
|
| - base::SmartArrayPointer<char> ToCString(AllowNullsFlag allow_nulls,
|
| - RobustnessFlag robustness_flag,
|
| - int offset, int length,
|
| - int* length_output = 0);
|
| - base::SmartArrayPointer<char> ToCString(
|
| + std::unique_ptr<char[]> ToCString(AllowNullsFlag allow_nulls,
|
| + RobustnessFlag robustness_flag, int offset,
|
| + int length, int* length_output = 0);
|
| + std::unique_ptr<char[]> ToCString(
|
| AllowNullsFlag allow_nulls = DISALLOW_NULLS,
|
| RobustnessFlag robustness_flag = FAST_STRING_TRAVERSAL,
|
| int* length_output = 0);
|
|
|