Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
draft for vercel/pkg#62
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed May 4, 2017
1 parent d95b149 commit 85ce383
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions patches/node.v7.6.0.patch
Expand Up @@ -82,6 +82,20 @@
friend class AssemblerBase;
// Flush instruction cache.
static void FlushICache(void* start, size_t size);
--- node/deps/v8/src/objects.cc
+++ node/deps/v8/src/objects.cc
@@ -13127,10 +13127,11 @@
Isolate* const isolate = function->GetIsolate();
Handle<SharedFunctionInfo> shared_info(function->shared(), isolate);

// Check if {function} should hide its source code.
if (!shared_info->script()->IsScript() ||
+ Script::cast(shared_info->script())->source()->IsUndefined(isolate) ||
Script::cast(shared_info->script())->hide_source()) {
return NativeCodeFunctionSourceString(shared_info);
}

// Check if we should print {function} as a class.
--- node/deps/v8/src/parsing/parser.cc
+++ node/deps/v8/src/parsing/parser.cc
@@ -3808,10 +3808,11 @@
Expand Down

0 comments on commit 85ce383

Please sign in to comment.