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
38
votes
5 answers

How does setInterval and setTimeout work?

I was in an awkward situation, I am working with pure JavaScript for almost 3 years, and I know that JavaScript is single-threaded language, and that you can simulate asynchronous execution using setInterval and setTimeout functions, but when I…
Taron Mehrabyan
  • 2,199
  • 2
  • 20
  • 27
23
votes
3 answers

What is the ProgId or CLSID for IE9's Javascript engine (code-named "Chakra")

Using .NET, I can write an app that hosts a scripting engine that complies with Microsoft's IActiveScript conventions. This includes JScript and VBScript from Microsoft, and also PerlScript, RubyScript and I don't know what else from third-parties.…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
23
votes
2 answers

Does Microsoft's ChakraCore provide any performance benefit over Google's V8 when used as JS Engine for Node.js

[I have Edited my question to narrow down the scenario to only Node.js. Please Re-Open it. It is a helpful question and Proper answers might come in future and not sooner as ChakraCore is still at very young age. But this question is Valid and…
Suman Barick
  • 3,311
  • 2
  • 19
  • 31
18
votes
3 answers

What is the JScript version that's in IE9?

I want this for some conditional compilation code that will run in all IE's less than IE9.
Paul Irish
  • 47,354
  • 22
  • 98
  • 132
11
votes
5 answers

Will the IE10 Chakra JScript engine available as stand alone accessible from C#?

Microsoft may (actually I think it will) in the future release the IE10 Chakra (JScript engine) as a stand alone module, like google V8 JavaScript Engine. The question is: will the engine accessible from C# like IronPython is?
Frederic Torres
  • 682
  • 7
  • 14
8
votes
1 answer

Is it an optimization to explicitly initialize undefined object members in JavaScript, given knowledge of the innerworkings of V8/spidermonkey/chakra?

In JavaScript, a commonly touted principle for good performance is to avoid changing the shape of an object. This makes me wonder, is this class Foo { constructor() { this.bar = undefined; } baz(x) { this.bar = x; } } a worthwhile…
M-Pixel
  • 3,501
  • 2
  • 16
  • 27
8
votes
1 answer

How does IE11 populate window.location.origin?

I have an issue in a non production environment in Internet Explorer 11 where window.location.origin is undefined. However, in the production environment this value actually returns window.location.origin = http://www.myproductionwebsite.com This…
7
votes
1 answer

Microsoft says IE9 has Parallel Javascript Rendering and Execution

The new JavaScript engine takes advantage of multiple CPU cores through Windows to interpret, compile, and run code in parallel. - http://technet.microsoft.com/en-us/library/gg699435.aspx and The Chakra engine interprets, compiles, and executes code…
David Murdoch
  • 87,823
  • 39
  • 148
  • 191
6
votes
1 answer

How to detect from nodejs which JavaScript engine it is running on?

There are now several forks of nodejs and some of them support JavaScript engines other than Google's V8 engine. For my node code to see which JS engine it is running under, what is currently the best way? The engines I am aware of are: Google's V8…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
6
votes
3 answers

Instance of IActiveScript, that implements the IE9's JavaScript engine (“Chakra”), works in a Quirks mode

By creating an instance of IActiveScript on the basis of CLSID "{16d51579-a30b-4c8b-a276-0ff4dc41e755}" (as described here), we get IE9's JavaScript engine, which works in a Quirks mode. Unfortunately, in the Quirks mode is not supported ECMAScript…
Andrey Taritsyn
  • 1,286
  • 11
  • 26
5
votes
2 answers

IE11 Console: Increase stack trace depth

In Chrome, you can increase the stack trace depth by setting a flag at runtime (using --js-flags="--stack-trace-limit "), or through the console (using Error.stackTraceLimit), explained here:…
user677526
5
votes
1 answer

How can I determine the JavaScript Engine from .js code?

Is there a way using JavaScript code to know what JavaScript Engine, is the one on which that code is run on? I don't want to get the browser type just the JavaScript engine.
Eduard Florinescu
  • 16,747
  • 28
  • 113
  • 179
4
votes
3 answers

Embedding Chakra Javascript Engine in Windows 8 / .Net 4.5

Given the rise of Javascript in Windows 8, does Windows 8 / .Net 4.5 / VS 2012 provide a mechanism to embed the Chakra javascript engine in application to enable scripting? If so, is there documentation for this somewhere?
Tristan
  • 6,776
  • 5
  • 40
  • 63
4
votes
2 answers

C# + IE9 JS Engine Chakra?

I'm working on a cool C# app, which uses JS a lot for our model layer. We would like to use the IE9 Chakra Javascript engine for speed improvements. Questions: Can I use Chakra in C#, and interact with JS objects as COM objects? (to call functions…
Bodekaer
  • 321
  • 3
  • 15
4
votes
2 answers

How will the Chakra Jscript engine be exposed to Scripting Hosts?

Anybody has experience with the upcoming IE9 Chakra engine? I am currently considering whether to incorporate the Microsoft's JScript engine through the Window Script Interface or using one of those open source javascript engines (tracemonkey/v8…
JavaMan
  • 4,954
  • 4
  • 41
  • 69
1
2 3 4