| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 59fa038f8d9eccbec389f3698f7a1ae180fa6167..2cc0f80e4e3dff61656caf09dfbf7e3c632adb74 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -1390,12 +1390,11 @@ bool Isolate::OptionalRescheduleException(bool is_bottom_call) {
|
| }
|
|
|
|
|
| -void Isolate::PushPromise(Handle<JSObject> promise) {
|
| +void Isolate::PushPromise(Handle<Object> promise) {
|
| ThreadLocalTop* tltop = thread_local_top();
|
| PromiseOnStack* prev = tltop->promise_on_stack_;
|
| StackHandler* handler = StackHandler::FromAddress(Isolate::handler(tltop));
|
| - Handle<JSObject> global_handle =
|
| - Handle<JSObject>::cast(global_handles()->Create(*promise));
|
| + Handle<Object> global_handle = global_handles()->Create(*promise);
|
| tltop->promise_on_stack_ = new PromiseOnStack(handler, global_handle, prev);
|
| }
|
|
|
|
|