| Index: src/runtime/runtime-function.cc
|
| diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc
|
| index a368f1b14cd491057a4fd29bdc12fa92aad80c03..069bd8b548cd91e927d04d7b81b951cbcb76e253 100644
|
| --- a/src/runtime/runtime-function.cc
|
| +++ b/src/runtime/runtime-function.cc
|
| @@ -192,12 +192,15 @@ RUNTIME_FUNCTION(Runtime_FunctionIsAPIFunction) {
|
| }
|
|
|
|
|
| -RUNTIME_FUNCTION(Runtime_FunctionIsBuiltin) {
|
| +RUNTIME_FUNCTION(Runtime_FunctionHidesSource) {
|
| SealHandleScope shs(isolate);
|
| DCHECK(args.length() == 1);
|
| -
|
| CONVERT_ARG_CHECKED(JSFunction, f, 0);
|
| - return isolate->heap()->ToBoolean(f->IsBuiltin());
|
| +
|
| + SharedFunctionInfo* shared = f->shared();
|
| + bool hide_source = !shared->script()->IsScript() ||
|
| + Script::cast(shared->script())->hide_source();
|
| + return isolate->heap()->ToBoolean(hide_source);
|
| }
|
|
|
|
|
|
|