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
3
votes
1 answer

ES6 Maps and Sets: how are object keys indexed efficiently?

In ES6, Maps and Sets can use Objects as keys. However since the ES6 specification does not dictate the underlying implementation of these datastructures, I was wondering how does the modern JS engines store the keys in order to guarantee O(1) or at…
luanped
  • 3,178
  • 2
  • 26
  • 40
3
votes
1 answer

Chakra Host Samples does not execute JavaScript code

I just started playing around with Windows Dev and please pardon me if this issue does not seem logical or legit to you. I am trying these Chakra Host samples on Microsoft GitHub and when input js cond like console.log or alert, I get error like…
mathakoot
  • 1,692
  • 2
  • 14
  • 26
3
votes
2 answers

Can JXcore work with ChakraCore on Windows 7?

I've downloaded the latest JXcore installer for Windows and when installing it offers me a choice of V8 (Chrome's Javascript engine) or SpiderMonkey (Firefox's JavaScript engine), but not ChakraCore (the OSS version of the JavaScript engine from…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
3
votes
2 answers

Is it possible to run IE9 or IE10 Chakra JS engine standalone?

I need to run some benchmark tests on different JS engines, need to measure timing, CPU and memory usage. I'd like to run my tests from the commandline. Found some solutions for V8 and SpiderMonkey, is there some way to do this with Chakra?
codercube
  • 31
  • 3
2
votes
2 answers

C# Trigger RaisePropertyChanged of Parent from Child?

I have this code where I have my ViewModel and the ViewModel has a property where it gets all of its properties. This is rough pseudo-code: public class MyClassViewModel : INotifyPropertyChanged { public MyClassViewModel () { } …
Water
  • 1,114
  • 1
  • 15
  • 31
2
votes
1 answer

Why setInterval accepts only 2^31-1 delay values?

According to the specification, long setInterval(Function handler, optional long timeout, any... arguments); setInterval() is supposed to accept long timeout delay. However, on 64bit Linux it behaves like it was a signed 32bit int. I didn't test on…
Michał Šrajer
  • 30,364
  • 7
  • 62
  • 85
2
votes
0 answers

Can I use Interceptors in Chakra

Can I use Interceptors in a native c++ application that's embedding Chakra? I want a callback to my application, when javascript code like session.id = 5 is executed. The session variable is not previously declared. The callback will return an valid…
Joris W
  • 517
  • 3
  • 16
2
votes
1 answer

How into inject javascript frameworks into ChakraBridge context?

I am trying to use math.js in my UWP app using ChakraBridge library. I referred the following link to use a javascript framework in a UWP app. http://www.codeproject.com/Articles/1060634/Using-JavaScript-frameworks-from-your-Csharp-UWP-a But I am…
Suraj
  • 609
  • 6
  • 13
2
votes
1 answer

How to use jScript 9 features in a VB6 host

I want to use the new JScript features in IE9 (native json, ...) from a VB6 Host. From what I've read (see http://blogs.msdn.com/b/jscript/archive/2009/04/17/versioning-language-features-in-jscript.aspx), I have to invoke the…
2
votes
2 answers

Is this JavaScript optimization or not?

Can someone explain me what are the differences between those two functions below? I'm wondering if JavaScript engines do some kind of nano-optimizations here. function withoutVar() { …
François Beaufort
  • 4,843
  • 3
  • 29
  • 38
2
votes
1 answer

Cross-browser key lookup performance in Javascript objects

I'm doing a data-intensive project in Javascript, where there are thousands of objects with short strings as "IDs" that need to be looked up efficiently by ID. My (possibly naive) approach was to create an object with a property for each object,…
btown
  • 2,273
  • 3
  • 27
  • 38
1
vote
2 answers

Can I run ASP Classic on Chakra?

Chakra is the code-name of the updated Javascript engine Microsoft packaged into IE9. It's possible to use JScript as the development language for an ASP Classic page. This normally runs on the JScript engine built-in to Windows, something that…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
1
vote
1 answer

How to use the latest available XMLHttpRequest in JScript

I use the following command to launch a JS script: C:\Windows\System32\cscript.exe /nologo //E:{16d51579-a30b-4c8b-a276-0ff4dc41e755} in order to use the latest Chakra engine. In my script, the command WScript.Echo( ScriptEngineMajorVersion() + "."…
Guerric P
  • 30,447
  • 6
  • 48
  • 86
1
vote
1 answer

.NET Core 2.2 Web API, React, and Google V8

We've decided to use React for our UI work within NET CORE. Per the React URL: https://reactjs.net/getting-started/aspnetcore.html , we "also need to install a JS engine to use (either V8 or ChakraCore are recommended)" We decided to go with Google…
Bill Roberts
  • 1,127
  • 18
  • 30
1
vote
1 answer

Chakra and IDispatch based indexed properties

I am creating a scriptable application using the native windows API and the chakrart JavaScript engine. I have interfaces like the following in my IDL: [oleautomation, dual, nonextensible, uuid(...)] interface IMyInterface :…
SoronelHaetir
  • 14,104
  • 1
  • 12
  • 23