sea: use JSON configuration and blob content for SEA

PR-URL: https://github.com/nodejs/node/pull/47125
Refs: https://github.com/nodejs/single-executable/discussions/58
Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
Joyee Cheung authored and RafaelGSS committed 2023-04-13 16:48:53 -03:00
1 parent 37d12730ab
commit 2bde0059ca
16 files changed
+639 -45

No files matched your search

+16
View File
@@ -275,6 +275,22 @@ void PerIsolateMessageListener(v8::Local<v8::Message> message,
void DecorateErrorStack(Environment* env,
const errors::TryCatchScope& try_catch);
class PrinterTryCatch : public v8::TryCatch {
public:
enum PrintSourceLine { kPrintSourceLine, kDontPrintSourceLine };
explicit PrinterTryCatch(v8::Isolate* isolate,
PrintSourceLine print_source_line)
: v8::TryCatch(isolate),
isolate_(isolate),
print_source_line_(print_source_line) {}
~PrinterTryCatch();
private:
v8::Isolate* isolate_;
PrintSourceLine print_source_line_;
};
} // namespace errors
v8::ModifyCodeGenerationFromStringsResult ModifyCodeGenerationFromStrings(