| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index d80b4a6945218e15ad17039b851db98822959266..62d3525cbc2f17293ae94abf8f031d59af308b58 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -2001,11 +2001,12 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetScript) {
|
|
|
|
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionGetSourceCode) {
|
| - NoHandleAllocation ha;
|
| + HandleScope scope(isolate);
|
| ASSERT(args.length() == 1);
|
|
|
| - CONVERT_CHECKED(JSFunction, f, args[0]);
|
| - return f->shared()->GetSourceCode();
|
| + CONVERT_ARG_CHECKED(JSFunction, f, 0);
|
| + Handle<SharedFunctionInfo> shared(f->shared());
|
| + return *shared->GetSourceCode();
|
| }
|
|
|
|
|
|
|