| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 3649621b09972dc7dae2373f56edf3c0100c6e27..ad3385d4c4ce830a0d67d30a0faa5bbe7ed4896d 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -1949,5 +1949,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
|
|
|