-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic implementation of jsi::HostObject on Chakra (#2428)
* Basic implementation of jsi::HostObject on Chakra Chakra JSRT doesn't provide API support to implement Host objects. We've resorted to ES6 proxies to simulate the behaviour. The current code has some rough edges, for eg. the inspection apis such as getHostObject, isHostObjecct etc. aren't supported in edge mode. We will fix them in subsequent changes. * Fixing build
- Loading branch information
1 parent
b7e6123
commit 7b09d9d
Showing
5 changed files
with
258 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#pragma once | ||
|
||
#include <jsi/jsi.h> | ||
|
||
namespace facebook { | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#pragma once | ||
|
||
#include <jsi/jsi.h> | ||
|
||
namespace facebook { | ||
namespace jsi { | ||
namespace chakraruntime { | ||
namespace chakraruntime { | ||
|
||
struct ChakraJsiRuntimeArgs; | ||
|
||
std::unique_ptr<jsi::Runtime> makeChakraJsiRuntime(ChakraJsiRuntimeArgs&& args) noexcept; | ||
|
||
} // namespace chakraruntime | ||
} // namespace jsi | ||
} // namespace facebook | ||
std::unique_ptr<jsi::Runtime> makeChakraJsiRuntime(ChakraJsiRuntimeArgs&& args) noexcept; | ||
|
||
} // namespace chakraruntime | ||
} // namespace jsi | ||
} // namespace facebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters