Questions tagged [chakra]

DO NOT use this tag for Chakra-UI questions. For questions pertaining to the Chakra JavaScript engine on Microsoft Edge and JScript engine on Internet Explorer

Chakra is Microsoft's JScript engine first distributed with IE9.
It's also the name of the JavaScript engine used on Microsoft Edge.

Questions with this tag should relate to one of the above two engines.

For the front-end component library, Chakra UI, instead use

51 questions
1
vote
1 answer

how to call C++ function or method via ms chakracore JavaScript engine?

ChakraCore is a nice javascript engine! It's modern and easy to use with a clean API. But I don't konw how to call a c++ function or method from the ChakraCore engine. Googles V8 and Mozilas SpiderMonkey have a build-in system for this purpose. Does…
jackyBu
  • 11
  • 2
1
vote
0 answers

Overcome 1 Interface limitation for projected classes to Javascript using Chakra?

I have a problem with the limitation of only having the 1st interface projected to Javascript. I would like to know if there are any workarounds / methods of solving it. I have around 20 classes I want to access in Javascript. These 20 classes…
Water
  • 1,114
  • 1
  • 15
  • 31
1
vote
1 answer

Can JSRT be used on Windows 7 with IE9+, or do I need to redistribute ChakraCore?

Several projects, like react-native-windows, make use of the JSRT wrapper API that interfaces to Chakra installations on Windows 10. Since Chakra started shipping in Internet Explorer 9, can I use that same JSRT wrapper on Windows 7 (SP1) if IE9 or…
Matt Hargett
  • 1,906
  • 1
  • 17
  • 37
1
vote
0 answers

Embedding ChakraHost (c#) for WebGL example

I have looked into the example involving embedding the javascript framework (paper.js) for drawing output to XAML's CanvasControl through the JsBridge implementation of ChakraHost. To include the paper.js framework and the javascript to call the…
JimSEOW
  • 109
  • 1
  • 7
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
  • 15,848
  • 18
  • 99
  • 158
1
vote
0 answers

Loading offline html with javascript in C#XAML application

I want to develop a hybrid windows 10 application which C#XAML which can load offline HTML with javascript. I have used Webview control to load my html, but Multitouch seem does not work well. I have also built an Javascript-Application to load my…
nvu
  • 137
  • 1
  • 7
1
vote
1 answer

How to execute Javascript code in a WinRT C# application?

I am writing a WinRT application in C#. I would like to execute some Javascript code. An entire WebView is not needed in my case, I just need to interface with a Javascript virtual machine. The C# code would call Javascript functions and would…
mbt
  • 155
  • 10
1
vote
1 answer

Embedding JS Engine into Windows Phone applications

I'm searching a way to use a JavaScript engine inside my Windows Phone application but I don't want to build a web application. Plus I have some trouble to find official support for those kinds of information.. I found this hack to inject Chakra in…
MajorShepard
  • 403
  • 4
  • 14
1
vote
3 answers

A failing minimal example of executing JS in Win 8.1 Chakra with C#

I'm attempting to execute a tiny piece of JS via the following code (utilising the Native class from the Chakra Host example from MSDN): var runtime = default(JavaScriptRuntime); …
lzcd
  • 1,325
  • 6
  • 12
1
vote
2 answers

Javascript engines and virtual machines similaraties?

this is a very simple question that i cannot seem to find answers for: Are javascript engines such as chromes V8 and Internet Explorers Chakra (in EI9+) similar in function to virtual machines for languages such as Java?
1
vote
1 answer

Error adding SCRIPTITEM_CODEONLY symbol using IE9 JS engine (Chakra)

We've been using active scripting in our browser extension (BHO) for a while with the old JScript engine (CLSID_JScript), and we recently decided to support the new IE9 script engine (Chakra) as well. One thing we do is add symbols to the engine…
Matthew Gertner
  • 4,487
  • 2
  • 32
  • 54
0
votes
1 answer

How can I write data to the client connected to a Node.js socket server from another function?

I'm attempting to make a function that would allow for triggering a script in a V8 instance of Node from a node-chakracore instance. I'm doing this by running a newer version of Node as a child process. I want to do this in a way that it only has 1…
0
votes
0 answers

Building Chakra-Core (C++) statically on Windows

I want to build Chakra-Core statically. Currently, in Visual Studio I have to link with ChakraCore.lib at compile time and with ChakraCore.dll at runtime. I tried building the solution through Visual Studio by changing the configuration type from…
0
votes
1 answer

How do I pass a void pointer pointer to a Windows DLL in Golang (void**)

I'm trying to experiment with getting the ChakraCore.dll to load on Windows with Golang but I'm having trouble figuring out what parameter type I need to pass in as the third parameter. My assumption from reading the library code and loosely…
SilbinaryWolf
  • 461
  • 4
  • 9
0
votes
0 answers

Chakracore - am I doing something wrong or have I found a bug?

I am using Microsoft's Chakracore from C++, and I've written a basic evaluator that I can repeatedly call from a read-eval-print loop as follows: void readEvalPrint(const char *prompt, JsSourceContext sourceContext) { JsValueRef result; …
markt1964
  • 2,638
  • 2
  • 22
  • 54