JSB - Remove promise creator Extension

Backport changes from https://github.com/cefsharp/CefSharp/commit/7450d0d51b1d8bfbe7f3aedc7ce8fe3c96e83c03

Add .editorconfig to fix formatting
This commit is contained in:
amaitland
2019-04-26 20:10:15 +10:00
parent c3ec1d6123
commit f90fee450b
10 changed files with 198 additions and 43 deletions
@@ -1,4 +1,4 @@
// Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
// Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
@@ -37,11 +37,10 @@ namespace CefSharp
{
auto memberObjects = asyncRootObject->MemberObjects;
auto saveMethod = gcnew Func<JavascriptAsyncMethodCallback^, int64>(this, &JavascriptRootObjectWrapper::SaveMethodCallback);
auto promiseCreator = v8Value->GetValue(CefAppUnmanagedWrapper::kPromiseCreatorFunction);
for each (JavascriptObject^ obj in Enumerable::OfType<JavascriptObject^>(memberObjects))
{
auto wrapperObject = gcnew JavascriptAsyncObjectWrapper(_callbackRegistry, saveMethod);
wrapperObject->Bind(obj, v8Value, promiseCreator);
wrapperObject->Bind(obj, v8Value);
_wrappedAsyncObjects->Add(wrapperObject);
}
@@ -75,4 +74,4 @@ namespace CefSharp
}
return result;
}
}
}