Skip to content

Commit

Permalink
fix: function names must be shown in js stacktraces in debug mode (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
darind committed Jan 22, 2020
1 parent f69d8b7 commit 844b643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NativeScript/runtime/Runtime.mm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@

V8::InitializePlatform(Runtime::platform_.get());
V8::Initialize();
std::string flags = "--expose_gc --jitless --no-lazy";
std::string flags = RuntimeConfig.IsDebug
? "--expose_gc --jitless"
: "--expose_gc --jitless --no-lazy";
V8::SetFlagsFromString(flags.c_str(), flags.size());
}

Expand Down

0 comments on commit 844b643

Please sign in to comment.