| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 11c20c3de87cbe29c06c294070c774a32d0cdd78..263d8727c755be8475b4041c4aada31165b5dca9 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -1969,5 +1969,13 @@ RUNTIME_FUNCTION(Runtime_DebugTogglePreciseCoverage) {
|
| return isolate->heap()->undefined_value();
|
| }
|
|
|
| +RUNTIME_FUNCTION(Runtime_DebugMarkAsPromiseBuiltin) {
|
| + HandleScope scope(isolate);
|
| + DCHECK_EQ(1, args.length());
|
| + CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0);
|
| + fun->shared()->set_is_promise_builtin(true);
|
| + return isolate->heap()->undefined_value();
|
| +}
|
| +
|
| } // namespace internal
|
| } // namespace v8
|
|
|