| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index f5a9a76c26293756f393e0a5d3e9bccd8f1ca77e..74e6643fe502e8308c796ebdfa37acb4f1fe45b3 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);
|
|
|