Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: src/d8.h

Issue 902263002: Enable compiling mjsunit tests as ES6 modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.h
diff --git a/src/d8.h b/src/d8.h
index caa5a0adba472ef5e8132ae9a7fdb5138dba34ef..90dde1541ee9b30d57ad0268256dbb8acd56b299 100644
--- a/src/d8.h
+++ b/src/d8.h
@@ -248,14 +248,16 @@ class Shell : public i::AllStatic {
#endif // V8_SHARED
public:
- static Local<UnboundScript> CompileString(
+ enum SourceType { SCRIPT, MODULE };
+
+ static Local<Script> CompileString(
Isolate* isolate, Local<String> source, Local<Value> name,
- v8::ScriptCompiler::CompileOptions compile_options);
- static bool ExecuteString(Isolate* isolate,
- Handle<String> source,
- Handle<Value> name,
- bool print_result,
- bool report_exceptions);
+ v8::ScriptCompiler::CompileOptions compile_options,
+ SourceType source_type);
+ static bool ExecuteString(Isolate* isolate, Handle<String> source,
+ Handle<Value> name, bool print_result,
+ bool report_exceptions,
+ SourceType source_type = SCRIPT);
static const char* ToCString(const v8::String::Utf8Value& value);
static void ReportException(Isolate* isolate, TryCatch* try_catch);
static Handle<String> ReadFile(Isolate* isolate, const char* name);
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698