| Index: test/cctest/cctest.h
|
| diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
|
| index 6243ac5327d0e2a6ccb98ac7d99d93d10bec7b82..c20e573e57714837f371fa9c81f38261d1c6f65f 100644
|
| --- a/test/cctest/cctest.h
|
| +++ b/test/cctest/cctest.h
|
| @@ -368,6 +368,12 @@ static inline v8::Local<v8::Script> v8_compile(const char* x) {
|
| }
|
|
|
|
|
| +static inline int32_t v8_run_int32value(v8::Local<v8::Script> script) {
|
| + v8::Local<v8::Context> context = CcTest::isolate()->GetCurrentContext();
|
| + return script->Run(context).ToLocalChecked()->Int32Value(context).FromJust();
|
| +}
|
| +
|
| +
|
| static inline v8::Local<v8::Script> CompileWithOrigin(
|
| v8::Local<v8::String> source, v8::Local<v8::String> origin_url) {
|
| v8::ScriptOrigin origin(origin_url);
|
|
|