| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index b14cdbdfc3e5b2fa5bd5261bc36c4943da089f47..d240f4c785bf289c296e58202f4e3407279f29c4 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -5137,10 +5137,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NewString) {
|
|
|
|
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_TruncateString) {
|
| - NoHandleAllocation ha(isolate);
|
| - CONVERT_ARG_CHECKED(SeqString, string, 0);
|
| + HandleScope scope(isolate);
|
| + CONVERT_ARG_HANDLE_CHECKED(SeqString, string, 0);
|
| CONVERT_SMI_ARG_CHECKED(new_length, 1);
|
| - return string->Truncate(new_length);
|
| + return *SeqString::Truncate(string, new_length);
|
| }
|
|
|
|
|
|
|