| Index: test/cctest/cctest.h
|
| diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
|
| index 73baa7656ec2ea952c524230e401f56ecf1bbd63..cc9edc801f5e268b17476178cea243b51cb2495b 100644
|
| --- a/test/cctest/cctest.h
|
| +++ b/test/cctest/cctest.h
|
| @@ -398,6 +398,13 @@ static inline v8::Local<v8::Value> CompileRun(const char* source) {
|
| }
|
|
|
|
|
| +// Helper functions that compile and run the source.
|
| +static inline v8::MaybeLocal<v8::Value> CompileRun(
|
| + v8::Local<v8::Context> context, const char* source) {
|
| + return v8::Script::Compile(v8_str(source))->Run(context);
|
| +}
|
| +
|
| +
|
| // Compiles source as an ES6 module.
|
| static inline v8::Local<v8::Value> CompileRunModule(const char* source) {
|
| v8::ScriptCompiler::Source script_source(v8_str(source));
|
|
|