Questions tagged [chakracore]

23 questions
4
votes
0 answers

Can I use bytecode bundles with JavaScriptCore react-native apps like I can with ChakraCore?

We tried the "bytecode unbundle" experimental feature of React Native Windows (enabled by ChakraCore's underlying bytecode caching feature) and found it noticeably improved app launch and time-to-interaction metrics. Does JavaScriptCore support a…
3
votes
1 answer

extendTheme for Chakra-ui in Gatsby

I am working in Gatbsy and when I try and override the core Chakra theme using a shadow theme.js file in a gatsby-plugin-chakra-ui folder it has no effect. Any thoughts please? I am using import { extendTheme } from '@chakra-ui/core' const theme =…
Nick Wild
  • 395
  • 1
  • 6
  • 18
2
votes
1 answer

Convert Ref{Cwstring}() to String

I am currently writing a ccall binding for the ChakraCore JavaScript engine and there is one function with this definition: CHAKRA_API JsStringToPointer( _In_ JsValueRef stringValue, _Outptr_result_buffer_(*stringLength) const WCHAR…
kungfooman
  • 3,696
  • 1
  • 32
  • 25
2
votes
1 answer

Getting unable to load chakra core.dll error while running hello world sample

I am trying to run chakra core c# sample provided here(https://github.com/Microsoft/ChakraCore/wiki/Embedding-ChakraCore#before-you-start) but getting error : I tried to install this also but getting error with it : Install-Package…
ILoveStackoverflow
  • 1,973
  • 1
  • 11
  • 35
2
votes
1 answer

Using JSRT, how do you load a module and then use it?

Using the JavaScript Runtime (JSRT), what functions would you call to load a JavaScript module and then call functions on it. For example, how would I load the file C:\Users\camer\ts\TsAst\node_modules\typescript\lib\typescript.js and then access…
Cameron Taggart
  • 5,047
  • 3
  • 35
  • 62
2
votes
1 answer

How can I build node.js without some internal modules?

I want to build a specific nodejs as a static library without some internal module like child_process dns etc. Is there a configurable way to go about this?
tommyZZM
  • 83
  • 6
2
votes
2 answers

how to fix ChakraCore NuGet package error?

When initializing a new React Native Windows WPF project, this error happens: NuGet Package restore failed for project Native: Unable to find version '1.4.1-preview-00010-42060' of package…
Matt Hargett
  • 1,442
  • 1
  • 12
  • 32
2
votes
2 answers

How do I measure CPU cache and prefetch misses in JavaScript engines?

I want a command-line way to evaluate low-level contributors to lower performance-per-watt of Node.js applications. Namely, L1, L2, and prefetch cache misses of JIT-generated native code, as well as the JIT/GC/interpteter of the JavaScript runtime…
Matt Hargett
  • 1,442
  • 1
  • 12
  • 32
1
vote
0 answers

ChakraCore.NET JavaScript engine: How to expose C# objects(including properties and variables) to javascript

I am able to access object methods by following samples provided in https://github.com/JohnMasen/ChakraCore.NET but couldn't find a way to bind variables in the object. Is there a way to bind properties and variables? And, is there a better approach…
Suma Chaganti
  • 155
  • 1
  • 9
1
vote
1 answer

In Chakra Core, how do you returns values without causing memory issues?

I've been following this example here in an attempt to create a simple javascript engine that can execute javascript like the zxcvbn library. I thought I had it figured out but there are some parts of the sample I don't understand. Specifically, how…
MichaelChan
  • 1,598
  • 13
  • 29
1
vote
1 answer

How can I create javascript standalone executables, hosted by ChakraCore?

I already know about jsc.exe (part of .NET SDK), that generates executables hosted by Windows Script Host. Also I noticed that the latest Typescript versions, the tsc.exe (compiled javascript) is using ChakraCore.dll So, what tool can I use to…
Panos Theof
  • 1,383
  • 1
  • 20
  • 25
1
vote
1 answer

reactjs.net Thread was being aborted

We've developed our code using Ractjs 3, JavaScriptEngineSwitcher, and Microsoft.ChakraCore. Once in a while my application took some seconds to load a page but I didn't have any errors on my application log so I decided to diagnose it with…
Ashkan Sirous
  • 7,211
  • 5
  • 41
  • 64
1
vote
1 answer

How can my node.js code see if it's running under official nodejs, iojs, jxcore, or node-chakracore?

There are now several forks of nodejs for various reasons. For my node code to see which fork it is running under, what is currently the best way? The forks I am aware of are: The official nodejs release iojs - I guess it's now deprecated since…
hippietrail
  • 13,703
  • 15
  • 87
  • 133
0
votes
0 answers

Chakra UI color mode in default props

I'm trying to extend my theme (modify default component) and pass my new default props to the Input component. I need focusBorderColor to change by current color mode. I tried to pass a function to defaultProps parameter but this broke all styles on…
nbsp
  • 118
  • 6
0
votes
1 answer

npm chakra-ui install failing due to dependency conflicts

I'm trying to learn react/typescript and I'm following a tutorial line for line, but somehow getting this error when trying to install either @chakra-ui/react or @chakra-ui/core. It seems like a dependecy issue with react having been updated. Should…
Travis
  • 1
1
2