issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
261k
βŒ€
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "chakra-core", "ChakraCore" ]
ChakraCore fails [this test262 test](https://github.com/tc39/test262/blob/master/test/language/expressions/object/method-definition/name-prototype-prop.js) This is because ChakraCore defines a prototype property in methods that are inside object literals: ``` var o = { f(){}, } o.f.hasOwnProperty("prototy...
Functions declared as methods define a `prototype` property
https://api.github.com/repos/chakra-core/ChakraCore/issues/5701/comments
0
2018-09-12T18:54:23Z
2018-09-24T17:30:37Z
https://github.com/chakra-core/ChakraCore/issues/5701
359,608,635
5,701
[ "chakra-core", "ChakraCore" ]
Hey! I'm looking at running Chakra under seccomp on Linux. Generally speaking, when does the VM need to allocate executable memory (ex. `mmap` with `PROT_EXEC`)? I'm assuming most of that is limited to the JIT, but are there other cases? Thanks!
When does Chakra require executable pages?
https://api.github.com/repos/chakra-core/ChakraCore/issues/5700/comments
3
2018-09-12T15:23:51Z
2018-09-25T22:02:51Z
https://github.com/chakra-core/ChakraCore/issues/5700
359,533,315
5,700
[ "chakra-core", "ChakraCore" ]
Git Head: d1524ebc936a11e45125650fc92c9ab635b4f395 To reproduce: `ch so.js` Crashing payload: ```js let limit = (1 << 16) - 4; function test0() { return arguments[limit - 1]; } while (true) { try { const txt = `test/(${Array(limit).fill(0).map((_, i) => i).join(",")})`; var val1...
Stack overflow in ParseNode::Grfnop()
https://api.github.com/repos/chakra-core/ChakraCore/issues/5699/comments
2
2018-09-12T07:42:18Z
2020-04-24T03:42:27Z
https://github.com/chakra-core/ChakraCore/issues/5699
359,353,664
5,699
[ "chakra-core", "ChakraCore" ]
Consider: ```js let obj = Object('asdf'); obj.a = 1; console.log(Reflect.ownKeys(obj).map(x => x.toString()).join(',')); ``` Per the overload for [`[[OwnPropertyKeys]]` for String exotic objects](https://tc39.github.io/ecma262/#sec-string-exotic-objects-ownpropertykeys), and in accord with every other browser...
Property enumeration order of String exotic objects is wrong
https://api.github.com/repos/chakra-core/ChakraCore/issues/5697/comments
1
2018-09-12T01:20:41Z
2018-09-26T23:20:31Z
https://github.com/chakra-core/ChakraCore/issues/5697
359,280,149
5,697
[ "chakra-core", "ChakraCore" ]
#5477 showed that ChakraCore does not throw an error when an assignment expression that is not allowed in strict mode is used as the computed property name of a member function within a class. #5689 fixed many cases that arise from the issue stated above. A case that is not fixed is when the invalid strict mode a...
Error not thrown when calling eval() on an assignment expression that is not valid in strict mode within a computed property name within a class
https://api.github.com/repos/chakra-core/ChakraCore/issues/5696/comments
0
2018-09-11T23:55:30Z
2018-09-26T23:23:10Z
https://github.com/chakra-core/ChakraCore/issues/5696
359,265,612
5,696
[ "chakra-core", "ChakraCore" ]
Stepping out from callbacks called by JsBuiltIn functions results in some frame information from the built in being visible. Repro: change the ```every``` call to ```forEach``` in DebuggerCommon/returnvaluetest1.js
Debugger: stepping out into JsBuiltIn functions
https://api.github.com/repos/chakra-core/ChakraCore/issues/5694/comments
3
2018-09-11T22:58:19Z
2019-06-07T18:32:30Z
https://github.com/chakra-core/ChakraCore/issues/5694
359,254,137
5,694
[ "chakra-core", "ChakraCore" ]
Writing to __proto__ can leave the TypeHandler::protoCachesWereInvalidated set, and writing to __proto__ again with the same type on the RHS object can skip proto cache invalidation.
Missing proto cache invalidation on repeated setting of new prototype
https://api.github.com/repos/chakra-core/ChakraCore/issues/5692/comments
1
2018-09-11T21:51:15Z
2018-09-26T19:38:08Z
https://github.com/chakra-core/ChakraCore/issues/5692
359,237,683
5,692
[ "chakra-core", "ChakraCore" ]
Ported from OS#18780560 Stage 3 Proposal: https://github.com/tc39/proposal-string-left-right-trim We already have implementations of trimLeft and trimRight, so we simply need to add trimStart and trimEnd as aliases to those. ``` >es --tags jsvu-web -is E:\work\bugs\19h1\trimStart-trimEnd\trimStart-trimEnd.js ...
Implement trimStart/trimEnd
https://api.github.com/repos/chakra-core/ChakraCore/issues/5690/comments
1
2018-09-11T21:29:17Z
2018-09-15T01:59:21Z
https://github.com/chakra-core/ChakraCore/issues/5690
359,231,289
5,690
[ "chakra-core", "ChakraCore" ]
Chakra failed with error C2440 when build with permissive- by msvc on Windows, I use latest version a3737b0 on master branch. Could you please help take a look at this? Noted that this issue only found when compiles with unreleased vctoolset, that next release of MSVC will have this behavior. **You can repro this is...
Chakra failed with error C2440 when build with permissive- by msvc on Windows
https://api.github.com/repos/chakra-core/ChakraCore/issues/5681/comments
3
2018-09-10T09:15:57Z
2018-09-10T21:15:35Z
https://github.com/chakra-core/ChakraCore/issues/5681
358,535,490
5,681
[ "chakra-core", "ChakraCore" ]
Hello, executing following code: ``` let arg_0 = {}; let arg_2 = {}; var i = 1; let handler_0 = { defineProperty : function (oTarget, sKey, oDesc) { return Reflect.defineProperty(oTarget, sKey, oDesc); } }; let handler_2 = { has : function (oTarget, sKey) { print(i++); print(sKey....
Wrong realization of Object.defineProperty
https://api.github.com/repos/chakra-core/ChakraCore/issues/5680/comments
2
2018-09-10T06:49:45Z
2018-09-24T17:59:20Z
https://github.com/chakra-core/ChakraCore/issues/5680
358,489,566
5,680
[ "chakra-core", "ChakraCore" ]
Hello, executing following code: ``` let arg_0 = /(.)\1/i; let handler_0 = {get:function (oTarget, sKey) { print(sKey.toString()); return Reflect.get(oTarget, sKey); }}; var p_0 = new Proxy(arg_0, handler_0); (0 + "\u1234\0").split(p_0); ``` In [ecma-262](https://www.ecma-international.org/ecma-262/...
Realization of String.prototype.split is inconsistent with ecma-262
https://api.github.com/repos/chakra-core/ChakraCore/issues/5679/comments
7
2018-09-10T03:41:59Z
2020-03-25T08:53:06Z
https://github.com/chakra-core/ChakraCore/issues/5679
358,457,286
5,679
[ "chakra-core", "ChakraCore" ]
Hello, executing following code: ``` var a = [1,,...[3]]; Object.defineProperty(a, "1", {configurable:false, value:10}); print(JSON.stringify(Object.getOwnPropertyDescriptor(a, "1"))); ``` Since 'enumerable' and 'writable' default to false, the output should be: `{"value":10,"writable":false,"enumerable":false,"...
Wrong property setting of Array's element
https://api.github.com/repos/chakra-core/ChakraCore/issues/5678/comments
1
2018-09-10T02:48:57Z
2020-04-12T00:34:46Z
https://github.com/chakra-core/ChakraCore/issues/5678
358,448,109
5,678
[ "chakra-core", "ChakraCore" ]
Hi, executing following code, ChakraCore will throw a TypeError. It seems that ch treats the empty array as undefined or null. ``` function f(...[]) {return 23}; f(); print("BT_FLAG"); ``` The output of ChakraCore: `TypeError: Unable to get property 'Symbol.iterator' of undefined or null reference` However, t...
TypeError shouldn't be thrown when function's argument is an empty array using spread operator
https://api.github.com/repos/chakra-core/ChakraCore/issues/5677/comments
6
2018-09-10T01:37:18Z
2020-04-08T22:04:21Z
https://github.com/chakra-core/ChakraCore/issues/5677
358,436,710
5,677
[ "chakra-core", "ChakraCore" ]
V8 relies on ICU for seemingly the same things that we do, and we both fail a lot of test262 tests because of it.
Implement spec-compliant CanonicalizeLanguageTag
https://api.github.com/repos/chakra-core/ChakraCore/issues/5674/comments
3
2018-09-07T23:42:42Z
2019-06-07T18:36:56Z
https://github.com/chakra-core/ChakraCore/issues/5674
358,242,168
5,674
[ "chakra-core", "ChakraCore" ]
When defining a class with ES6, if you define the class in the window object, the class name is not set: ``` <script> test1 = class Foo {}; window.test2 = class Bar {}; console.log(window.test1.name); console.log(window.test2.name); </script> ``` Expecte...
ES6 class name not set when defined in window object
https://api.github.com/repos/chakra-core/ChakraCore/issues/5672/comments
1
2018-09-07T10:36:24Z
2018-09-07T14:56:17Z
https://github.com/chakra-core/ChakraCore/issues/5672
358,014,184
5,672
[ "chakra-core", "ChakraCore" ]
While porting mono to wasm, it's really unproductive to have to deal with this sort of errors: ``` wasm-function[744]:801: RuntimeError: function signature mismatch RuntimeError: function signature mismatch at _mini_init (wasm-function[744]:801) at _mono_jit_init_version (wasm-function[415]:63) at _mo...
[WebAssembly] Improve abort exception messages
https://api.github.com/repos/chakra-core/ChakraCore/issues/5668/comments
2
2018-09-06T15:21:10Z
2018-09-10T14:14:38Z
https://github.com/chakra-core/ChakraCore/issues/5668
357,706,639
5,668
[ "chakra-core", "ChakraCore" ]
Run the below script with eshost on macOS and it will throw in Ch but pass in all other engines - from reading CC's source there is a different sort algorithm used on xplat for arrays > 512 elements in length than on windows and I think there's an error in it's logic. ```js const arr = []; for (let i = 0; i < 600;...
BUG: xplat Array.prototype.sort produces incorrect results when length > 512
https://api.github.com/repos/chakra-core/ChakraCore/issues/5667/comments
5
2018-09-05T22:26:34Z
2018-09-08T01:18:27Z
https://github.com/chakra-core/ChakraCore/issues/5667
357,426,705
5,667
[ "chakra-core", "ChakraCore" ]
Now that V8 has patched their `Array#sort` to be stable _(see [here](https://twitter.com/mathias/status/1036626116654637057))_ it appears that Chakra may be one of the last _(or the last)_ of the browser JS engines _(JS Core, SpiderMonkey, V8, etc.)_ to [perform a **non**-stable sort](https://twitter.com/mathias/status...
Stable sort for Array#sort.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5661/comments
27
2018-09-03T18:15:12Z
2018-11-01T19:05:48Z
https://github.com/chakra-core/ChakraCore/issues/5661
356,576,944
5,661
[ "chakra-core", "ChakraCore" ]
First I just want to congratulate on your work on Chakra, thank you for making it available to us. We recently switched from v8 to chakra as our main driver in [Krom](https://github.com/Kode/Krom) / [Armory](https://armory3d.org/) game engine and we are quite excited! With our [current setup](https://github.com/Kode...
Unable to print exception message
https://api.github.com/repos/chakra-core/ChakraCore/issues/5660/comments
9
2018-09-02T12:59:55Z
2018-09-08T00:12:46Z
https://github.com/chakra-core/ChakraCore/issues/5660
356,280,653
5,660
[ "chakra-core", "ChakraCore" ]
Executing following code in ch 1.10 : ``` Uint8Array.prototype.toLocaleString.call(0) ``` The output is "" However, in [specific](https://www.ecma-international.org/ecma-262/9.0/index.html#sec-%typedarray%.prototype.tolocalestring) : "ValidateTypedArray is applied to the this value prior to evaluating the algor...
Wrong realization of TypedArray's toLocaleString()
https://api.github.com/repos/chakra-core/ChakraCore/issues/5653/comments
3
2018-08-29T13:22:19Z
2018-09-05T23:14:14Z
https://github.com/chakra-core/ChakraCore/issues/5653
355,158,198
5,653
[ "chakra-core", "ChakraCore" ]
See https://github.com/tc39/ecma402/issues/256. A test262 issue has already been created as well.
Chakra does not respect `usage` option for Intl.Collator/String.prototype.toLocaleString
https://api.github.com/repos/chakra-core/ChakraCore/issues/5648/comments
0
2018-08-28T16:24:38Z
2018-09-06T20:47:33Z
https://github.com/chakra-core/ChakraCore/issues/5648
354,807,383
5,648
[ "chakra-core", "ChakraCore" ]
Works on built-in functions and other non ECMAScript forms: ```js var x = function() {}; Object.getOwnPropertyDescriptor(x, "length").configurable; // true delete x.length; // expected true, received false Object.getOwnPropertyDescriptor(x, "length"); // expected undefined, received the previous descriptor for '...
Functions 'length' is configurable but can't be deleted.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5646/comments
7
2018-08-27T19:41:07Z
2018-08-27T20:50:03Z
https://github.com/chakra-core/ChakraCore/issues/5646
354,450,439
5,646
[ "chakra-core", "ChakraCore" ]
```js [1, 2, 3].flatMap(() => { throw new Error() }) ``` This shows a line for `FlattenArrayIntoMapped (native code)`, which should be excluded from the stack trace.
JsBuiltIn internal functions are shown in stack traces
https://api.github.com/repos/chakra-core/ChakraCore/issues/5644/comments
0
2018-08-27T18:22:47Z
2018-09-17T20:56:28Z
https://github.com/chakra-core/ChakraCore/issues/5644
354,424,198
5,644
[ "chakra-core", "ChakraCore" ]
```js try { [1, 2, 3].forEach(() => { throw new Error(); }); } catch (e) { print(e.stack); } ``` This shows a line for `forEach (native code)` with jsbuiltins enabled, while it shows `Array.prototype.forEach (native code)` with jsbuiltins disabled. Same for .filter.
JsBuiltIns show as `funcName` rather than `Constructor.prototype.funcName` in stack traces
https://api.github.com/repos/chakra-core/ChakraCore/issues/5643/comments
2
2018-08-27T18:20:49Z
2018-09-17T20:56:28Z
https://github.com/chakra-core/ChakraCore/issues/5643
354,423,557
5,643
[ "chakra-core", "ChakraCore" ]
```js [1, 2, 3].forEach(function () { arguments.callee.caller; }) ``` This throws with Array.prototype.forEach as a JsBuiltIn, but passes with the native version. Same thing for .filter and .flatMap. V8 and SpiderMonkey do not throw.
Accessing `arguments.callee.caller` in sloppy callback to JsBuiltIn throws
https://api.github.com/repos/chakra-core/ChakraCore/issues/5642/comments
13
2018-08-27T18:03:12Z
2018-09-06T21:35:47Z
https://github.com/chakra-core/ChakraCore/issues/5642
354,417,726
5,642
[ "chakra-core", "ChakraCore" ]
### html `<button id="upload">upload</button>` ### js `let button = document.getElementById('upload');` `let input = document.createElement('input');` ` input.type = 'file';` `button.onclick = function () {` ` input.click();` ` console.log('unblock')` ` };` ### problem When i run this d...
confusing block
https://api.github.com/repos/chakra-core/ChakraCore/issues/5641/comments
3
2018-08-27T05:21:11Z
2018-08-28T16:43:01Z
https://github.com/chakra-core/ChakraCore/issues/5641
354,183,268
5,641
[ "chakra-core", "ChakraCore" ]
Executing following code in ch 1.10: ``` print(typeof Int32Array.prototype.__proto__.byteOffset); ``` Output of ChakraCore: ``` undefined ``` However, output should be : ``` Exception: TypeError: Receiver should be a typed array view ``` BT group 2018.08.26
Fail to throw TypeError when using typeof to access %TypedArray% Intrinsic Object's byteOffset
https://api.github.com/repos/chakra-core/ChakraCore/issues/5639/comments
3
2018-08-26T09:33:11Z
2018-09-06T21:19:51Z
https://github.com/chakra-core/ChakraCore/issues/5639
354,080,547
5,639
[ "chakra-core", "ChakraCore" ]
Executing following code : ``` print(Int32Array.prototype.__proto__.constructor) ``` Output of ch is : ``` function() { [native code] } ``` However, output(v8, spm, jsc) should be : ``` function TypedArray() { [native code] } ``` BT group 2018.08.26
Wrong output of %TypedArray% 's constructor
https://api.github.com/repos/chakra-core/ChakraCore/issues/5638/comments
1
2018-08-26T09:21:29Z
2018-08-26T17:20:41Z
https://github.com/chakra-core/ChakraCore/issues/5638
354,079,938
5,638
[ "chakra-core", "ChakraCore" ]
Executing following code : ``` var v=[]; class C { m() {return 23}; } class D extends C { f() {return super.boom();} } Object.defineProperty(C.prototype, "boom", {get : function() { print(this===v); return this.m; }}); print(new D().f.apply(v,[])); ``` Output of ChakraCo...
Wrong to change 'this' when using super to access method
https://api.github.com/repos/chakra-core/ChakraCore/issues/5637/comments
0
2018-08-26T08:08:16Z
2018-10-17T18:00:55Z
https://github.com/chakra-core/ChakraCore/issues/5637
354,075,856
5,637
[ "chakra-core", "ChakraCore" ]
See these comments: https://github.com/Microsoft/ChakraCore/pull/5622#issuecomment-415905651 https://github.com/Microsoft/ChakraCore/pull/5622#issuecomment-415908077 After implementing Object.fromEntries the AsmJS parameters out of memory test would crash on xplat debug builds when calling WScript.Quit(0) - this i...
Modified test: Xplat Debug only Recycler crash on exit
https://api.github.com/repos/chakra-core/ChakraCore/issues/5636/comments
1
2018-08-25T18:04:09Z
2018-09-05T23:07:39Z
https://github.com/chakra-core/ChakraCore/issues/5636
354,031,776
5,636
[ "chakra-core", "ChakraCore" ]
We are currently manually negating the input set and encoding the full negated set, rather than checking that a set does NOT include a character (for which we already have logic, except for the built-in character sets). This has a minor to moderate unnecessary memory cost. We should be using whichever set (negated o...
RegExp memory efficiency: built-in negated character classes could use NegatedSet
https://api.github.com/repos/chakra-core/ChakraCore/issues/5633/comments
0
2018-08-24T23:37:26Z
2019-06-07T18:36:21Z
https://github.com/chakra-core/ChakraCore/issues/5633
353,958,852
5,633
[ "chakra-core", "ChakraCore" ]
Only a problem when producing `JSCRIPT_FUNCTION_JIT_QUEUED` or `JSCRIPT_FUNCTION_JIT_DEQUEUED` events. That calls `GetDisplayName` helper that may miscalculate the length of the source name and read extra chars, causing a crash in stress scenarios.
Tracing ETW events for the JIT queue may crash in stress scenarios.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5631/comments
0
2018-08-24T17:52:01Z
2018-08-24T21:39:40Z
https://github.com/chakra-core/ChakraCore/issues/5631
353,873,390
5,631
[ "chakra-core", "ChakraCore" ]
Hi everyone, there is an inconsistency in Chakra if a switch statement with only one case block evaluation that could be not reached. version: 1.10.2 OS: Ubuntu 16.04 x64 steps to reproduce: ```js { function f() { return "f 0"; } } switch (1) { case /0.0/gi: function f() { return "f 1"; ...
Switch statement without reached the case block
https://api.github.com/repos/chakra-core/ChakraCore/issues/5630/comments
3
2018-08-24T16:23:46Z
2020-04-13T12:41:40Z
https://github.com/chakra-core/ChakraCore/issues/5630
353,848,011
5,630
[ "chakra-core", "ChakraCore" ]
Executing following code : ``` var obj1 = new RegExp('') let arg_1 = obj1; let handler_1 = { get:function (oTarget, sKey) { if (sKey.toString() == 'Symbol(Symbol.toPrimitive)') { } if (sKey.toString() == 'valueOf') { } if (sKey.toString() == 'toString') {...
Incorrect realization of RegExp.prototype.toString()
https://api.github.com/repos/chakra-core/ChakraCore/issues/5629/comments
1
2018-08-24T01:43:46Z
2020-03-25T08:53:17Z
https://github.com/chakra-core/ChakraCore/issues/5629
353,613,060
5,629
[ "chakra-core", "ChakraCore" ]
I recently hit a bug where Edge doesn't expose `searchParams` as a property on the URL class. According to the URL spec, `searchParams` is supposed return an instance of URLSearchParams. Reference: https://url.spec.whatwg.org/#url-class Codepen: https://codepen.io/macdonaldr93/pen/wEKwLa
The URL class in JavaScript doesn't implement the full spec (search params)
https://api.github.com/repos/chakra-core/ChakraCore/issues/5626/comments
5
2018-08-23T14:27:51Z
2018-08-23T23:40:30Z
https://github.com/chakra-core/ChakraCore/issues/5626
353,407,525
5,626
[ "chakra-core", "ChakraCore" ]
macOS Build doesn't support ch -? parameter, but it obviously support flaglists, eg. -dump:globopt, -dump:bytecode, etc.
macOS Build doesn't support ch -? parameter
https://api.github.com/repos/chakra-core/ChakraCore/issues/5625/comments
2
2018-08-23T14:06:56Z
2018-10-09T23:21:55Z
https://github.com/chakra-core/ChakraCore/issues/5625
353,397,331
5,625
[ "chakra-core", "ChakraCore" ]
Hi everyone, there is an inconsistency in Chakra if we seal a TypedArray the object is frozen as well. According to [specs](https://tc39.github.io/ecma262/#sec-setintegritylevel), Seal level should set only properties configurable to false. version: 1.10.2 OS: Ubuntu 16.04 x64 steps to reproduce: ```js let ta...
Object.seal(TypedArray) should not freeze object as well
https://api.github.com/repos/chakra-core/ChakraCore/issues/5624/comments
0
2018-08-23T02:55:29Z
2018-08-29T20:55:52Z
https://github.com/chakra-core/ChakraCore/issues/5624
353,201,875
5,624
[ "chakra-core", "ChakraCore" ]
Hi everyone, I find out an inconsistency in Array.toLocaleString when `typeof this` is called the return is `test`. V8, SpiderMonkey and JavaScriptCore return `string` as expected. Chakra version: 1.10.2.0 O.S: MacOS High Sierra version 10.13.6 step to reproduce: ```js "use strict"; Object.definePrope...
Array.toLocaleString should return typeof string instead string value
https://api.github.com/repos/chakra-core/ChakraCore/issues/5621/comments
8
2018-08-22T19:55:57Z
2018-10-05T20:42:35Z
https://github.com/chakra-core/ChakraCore/issues/5621
353,100,548
5,621
[ "chakra-core", "ChakraCore" ]
The remarks in [the JsRef reference documention](https://github.com/Microsoft/ChakraCore/wiki/JsRef) say, "A Chakra runtime will automatically track JsRef references as long as they are stored in local variables or in parameters (i.e. on the stack). Storing a JsRef somewhere other than on the stack requires calling Js...
Clarification on JsRef tracking
https://api.github.com/repos/chakra-core/ChakraCore/issues/5620/comments
6
2018-08-22T17:00:50Z
2018-10-10T01:15:12Z
https://github.com/chakra-core/ChakraCore/issues/5620
353,042,211
5,620
[ "chakra-core", "ChakraCore" ]
Hi MS team We are seeing an issue with Edge / IE11 date format for ja-JP when using only Month and Day as an option. This is potentially coming from the CLDR version used by the Intl API but not sure. Win 10 Microsoft Edge 42.17134.1.0: Options: short, narrow for date without year results in missing month char i...
Edge and IE 11 - Date format for ja-JP locale is incorrect when using Month + Day in short and narrow options
https://api.github.com/repos/chakra-core/ChakraCore/issues/5619/comments
2
2018-08-21T21:39:42Z
2018-08-21T22:14:00Z
https://github.com/chakra-core/ChakraCore/issues/5619
352,720,767
5,619
[ "chakra-core", "ChakraCore" ]
Hi everyone, according to ecma specs [String.padEnd](https://www.ecma-international.org/ecma-262/8.0/index.html#sec-string.prototype.padend) on step `8. If filler is the empty String, return S.` V8 and Chakra throws a RangeError instead of return the original string. In specs, if the maxLength is reached the maxLe...
String.padStart and String.padEnd should return the original string if filler is an empty string
https://api.github.com/repos/chakra-core/ChakraCore/issues/5617/comments
3
2018-08-21T17:50:56Z
2018-09-21T00:07:46Z
https://github.com/chakra-core/ChakraCore/issues/5617
352,645,428
5,617
[ "chakra-core", "ChakraCore" ]
Hi, I'm sorry if this has been said before or if this is not the place to in fact say it, I'm not too much of a github guy. So, there are some short but useful examples in the overview, but this is my first time doing stuff with interpreters, and I've found out I'm not as comfortable with javascript as I thought. All ...
Undocumented functions. Also getters and setters.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5615/comments
10
2018-08-20T21:43:38Z
2020-03-25T08:41:24Z
https://github.com/chakra-core/ChakraCore/issues/5615
352,307,314
5,615
[ "chakra-core", "ChakraCore" ]
``` var index = "0.1"; var ary = [0,1]; for (var i = 0; i < 10000; ++i) { // +index calls Op_ConvNumber which will return a double in this case. // LdElemI will does a type check on the index and bails out if it's not an int, but rejits the exact same code. ary[+index]; } ```
OpHelpers returning non-int values lead to Infinite bailouts on some array operations
https://api.github.com/repos/chakra-core/ChakraCore/issues/5614/comments
0
2018-08-20T20:56:54Z
2021-02-13T15:07:53Z
https://github.com/chakra-core/ChakraCore/issues/5614
352,293,568
5,614
[ "chakra-core", "ChakraCore" ]
Hi, following code behaves different from other JS engines. ``` function test0() { var GiantPrintArray = []; function v9870() { try { var arr = []; var v9872 = []; let rlt = Object.defineProperty(Array.prototype, "0", { ...
Incorrect realization of Array.prototype.push
https://api.github.com/repos/chakra-core/ChakraCore/issues/5611/comments
3
2018-08-20T12:41:45Z
2018-08-23T17:47:14Z
https://github.com/chakra-core/ChakraCore/issues/5611
352,117,337
5,611
[ "chakra-core", "ChakraCore" ]
I saw we are using library function [swprintf_s](https://github.com/Microsoft/ChakraCore/blob/701d1af560cf0060df493c65c596d86bed708d4b/lib/Runtime/Library/JavascriptNumber.cpp#L931) to convert a double value to string, which has performance issues that have been discussed in .NET Core. See https://github.com/dotnet/cor...
Consider using Grisu3 + Dragon4 for double.ToString() conversion.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5609/comments
1
2018-08-18T04:49:23Z
2020-09-21T21:02:47Z
https://github.com/chakra-core/ChakraCore/issues/5609
351,790,377
5,609
[ "chakra-core", "ChakraCore" ]
Chakra failed with error C2760 when build with permissive- by msvc on Windows, I use latest source on master branch. Could you please help take a look at this? Noted that this issue only found when compiles with unreleased vctoolset, that next release of MSVC will have this behavior. **You can repro this issue as th...
Chakra failed with error C2760 when build with permissive- by msvc on Windows
https://api.github.com/repos/chakra-core/ChakraCore/issues/5607/comments
2
2018-08-17T02:50:11Z
2019-11-26T08:19:04Z
https://github.com/chakra-core/ChakraCore/issues/5607
351,438,707
5,607
[ "chakra-core", "ChakraCore" ]
This issue is regarding a bit of code the ICU implementation for Intl. (cc: @jackhorton). Currently, it looks like ChakraCore calls `ucal_setGregorianChange` and sees if it *fails* with `U_UNSUPPORTED_ERROR ` in order to detect non-Gregorian calendars. Link to the code: https://github.com/Microsoft/ChakraCore/bl...
Intl ICU: Call ucal_getType instead of calling ucal_setGregorianChange and checking for failure?
https://api.github.com/repos/chakra-core/ChakraCore/issues/5603/comments
0
2018-08-16T00:23:40Z
2018-08-28T15:50:50Z
https://github.com/chakra-core/ChakraCore/issues/5603
351,012,559
5,603
[ "chakra-core", "ChakraCore" ]
I started playing with ChakraCore in a multi-threaded environment (Rust, using a multi-threaded HTTP server) and stumbled into frequent `JsErrorWrongThread` errors. It seems to happen when trying to `JsSetCurrentContext` in a thread while it's active in another thread. After chatting on gitter, I came to understand ...
Multi-threaded synchronization
https://api.github.com/repos/chakra-core/ChakraCore/issues/5599/comments
5
2018-08-15T13:11:11Z
2018-08-25T22:23:42Z
https://github.com/chakra-core/ChakraCore/issues/5599
350,803,646
5,599
[ "chakra-core", "ChakraCore" ]
Seems only can effect the js code logic: Maybe the stack obj memory should be discarded after the deep copy, and redirect the ref to the stack obj data to the new heap obj memory. otherwise, the optimized code execution result "heap_arr[index] == stack_arr[index]" not true, which changed the code logic. [seems_a_b...
seems a optimization bug when an object escaped
https://api.github.com/repos/chakra-core/ChakraCore/issues/5598/comments
1
2018-08-15T04:42:24Z
2018-08-22T23:27:47Z
https://github.com/chakra-core/ChakraCore/issues/5598
350,683,966
5,598
[ "chakra-core", "ChakraCore" ]
ChakraCore 1.10.1 does not work anymore on Windows Server 2008 R2. The server is fully patched. Just try to run the ch.exe running a simple script and it will crash. ChakraCore 1.10.0 works fine.
Crashes on 2008 R2
https://api.github.com/repos/chakra-core/ChakraCore/issues/5595/comments
8
2018-08-14T12:02:45Z
2018-08-17T12:51:02Z
https://github.com/chakra-core/ChakraCore/issues/5595
350,398,437
5,595
[ "chakra-core", "ChakraCore" ]
This issue is as minor as they come - no impact on CC when you're running it. But slightly annoying redundancy when running the script a lot e.g. when developing any new JsBuiltIn (unless I'm misunderstanding and the repeat is needed): https://github.com/Microsoft/ChakraCore/blob/f5c33acaf24f5899435ac295ab8597611...
RegenAllByteCodeNoBuild.cmd regens JsBuiltIns twice
https://api.github.com/repos/chakra-core/ChakraCore/issues/5591/comments
0
2018-08-11T18:25:17Z
2018-08-13T18:26:40Z
https://github.com/chakra-core/ChakraCore/issues/5591
349,754,074
5,591
[ "chakra-core", "ChakraCore" ]
Object.fromEntries is a stage 3 proposal: https://github.com/tc39/proposal-object-from-entries It'd be great to get it implemented in Chakra soon! Test262 tests are here: https://github.com/tc39/test262/pull/1676 Ref: https://github.com/tc39/proposal-object-from-entries/issues/21
Implement Object.fromEntries
https://api.github.com/repos/chakra-core/ChakraCore/issues/5590/comments
3
2018-08-11T05:31:20Z
2018-09-06T07:20:35Z
https://github.com/chakra-core/ChakraCore/issues/5590
349,707,738
5,590
[ "chakra-core", "ChakraCore" ]
Try the following in console: >m1 = new Map(); [object Map]: {size: 0} >m1.set(Symbol.for("n1"), "v1"); [object Map]: {size: 1} > m1.get(Symbol.for("n1")); undefined Actual: undefined Expected: "v1" Same works in Chrome and returns "v1". Symbol.for() should have created an entry in the global symb...
Symbol.for and usage as Map key do not work as expected
https://api.github.com/repos/chakra-core/ChakraCore/issues/5587/comments
12
2018-08-09T23:48:57Z
2018-08-22T23:24:03Z
https://github.com/chakra-core/ChakraCore/issues/5587
349,329,360
5,587
[ "chakra-core", "ChakraCore" ]
Hello. The following script will raise a compile error. `trace("摩倩ζ₯Ό"2222, true, 3.14);` And the source property of exception-metadata is wrong. like this: `trace("摩倩ζ₯Ό"2222, true, m File` In Scanner::SysAllocErrorLine(), `pEnd` calculation is failed with two or more bytes character. It makes insufficient stri...
The source property of exception-metadata may be wrong.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5585/comments
1
2018-08-08T14:07:25Z
2019-01-22T20:15:23Z
https://github.com/chakra-core/ChakraCore/issues/5585
348,742,524
5,585
[ "chakra-core", "ChakraCore" ]
Hi everyone, according to [es6 specs](https://tc39.github.io/ecma262/#sec-regexp.prototype.compile) chakra should throw a TypeError if the object does not have a RegExpMatcher. OS: Ubuntu 16.04 x64 chakra version: 1.10.1.0 steps to reproduce: ```js RegExp().constructor().constructor.prototype.compile(RegExp...
RegExp.prototype.compile with incompatible Object
https://api.github.com/repos/chakra-core/ChakraCore/issues/5579/comments
1
2018-08-07T20:02:18Z
2020-03-25T08:53:29Z
https://github.com/chakra-core/ChakraCore/issues/5579
348,466,761
5,579
[ "chakra-core", "ChakraCore" ]
I've got a test program that does the following in two separate threads. I understand that the runtime and context can only be accessed by one thread at a time. In the main thread, create a runtime and a context, and execute some JavaScript code to add a function called "square" to the global object. The JavaScript ...
Seg fault when accessing Context from multiple threads
https://api.github.com/repos/chakra-core/ChakraCore/issues/5577/comments
10
2018-08-07T14:35:35Z
2018-08-09T15:28:41Z
https://github.com/chakra-core/ChakraCore/issues/5577
348,349,776
5,577
[ "chakra-core", "ChakraCore" ]
Hi everyone, this is a inconsistency on Chakra that can declare global binding `undefined`. OS: Ubuntu 16.04 x64 chakra: 1.10.1.0 steps to reproduce: ```js function undefined () {print('Test failed')} undefined() 'use strict' function undefined () {print('Test failed')} undefined() ``` Actual results:...
Chakra should not redeclare "undefined" keyword
https://api.github.com/repos/chakra-core/ChakraCore/issues/5576/comments
2
2018-08-07T10:18:19Z
2018-10-02T22:52:15Z
https://github.com/chakra-core/ChakraCore/issues/5576
348,257,781
5,576
[ "chakra-core", "ChakraCore" ]
Debug build of ChakraCore received SIGILL with an ASSERTION FAILURE. ASSERTION 15614: (/data/ChakraCore/lib/Runtime/Base/ScriptContext.cpp, line 2809) this->threadContext->GetRecordedException() == nullptr || GetThreadContext()->HasUnhandledException() Failure: (this->threadContext->GetRecordedException() == nullp...
ChakraCore crashes with assertion failure in ScriptContext.cpp:2809
https://api.github.com/repos/chakra-core/ChakraCore/issues/5572/comments
2
2018-08-04T07:14:37Z
2018-08-23T21:36:09Z
https://github.com/chakra-core/ChakraCore/issues/5572
347,595,661
5,572
[ "chakra-core", "ChakraCore" ]
Debug build of ChakraCore received SIGILL with an ASSERTION FAILURE. ``` $ ./build.sh --debug $ ./out/Debug/ch test.js ASSERTION 14607: (/data/ChakraCore/lib/Parser/Scan.h, line 495) static_cast<charcount_t>(m_pchMinTok - m_pchBase) >= m_cMinTokMultiUnits Failure: (static_cast<charcount_t>(m_pchMinTok - m_pchBa...
ChakraCore crashes with assertion failure in Scan.h:495
https://api.github.com/repos/chakra-core/ChakraCore/issues/5571/comments
1
2018-08-04T06:37:13Z
2018-08-15T23:58:30Z
https://github.com/chakra-core/ChakraCore/issues/5571
347,593,433
5,571
[ "chakra-core", "ChakraCore" ]
The documentation for JsCreatePropertyId at https://github.com/Microsoft/ChakraCore/wiki/JsCreatePropertyId indicates that the 'name' parameter may consist of only digits. I'm confused as I expect the name to be the name of whatever property you're going to get/set, and not just a string representation of an integer...
Proper use of name parameter for JsCreatePropertyId
https://api.github.com/repos/chakra-core/ChakraCore/issues/5570/comments
5
2018-08-03T18:27:47Z
2020-04-12T00:35:52Z
https://github.com/chakra-core/ChakraCore/issues/5570
347,494,311
5,570
[ "chakra-core", "ChakraCore" ]
'use strict'; var o = [1,2,3] Object.freeze(o); console.log(delete o[1]); Result: Assert: (result || !(propertyOperationFlags & (PropertyOperation_StrictMode | PropertyOperation_ThrowOnDeleteIfNotConfig)))
Assertion when deleting indexed property from frozen array
https://api.github.com/repos/chakra-core/ChakraCore/issues/5564/comments
1
2018-08-01T20:02:55Z
2018-08-01T23:54:37Z
https://github.com/chakra-core/ChakraCore/issues/5564
346,747,758
5,564
[ "chakra-core", "ChakraCore" ]
Following up on the discussion in this PR https://github.com/Microsoft/ChakraCore/pull/5471. Right now for eval cases we always assume superpopertyallowed status and then throw a runtime error for error cases. Ideally is should be a Syntax Error. ```js function foo() { print(eval("print('Inside eval');super.a"...
Super property access in eval cases should throw SyntaxError not runtime error
https://api.github.com/repos/chakra-core/ChakraCore/issues/5559/comments
4
2018-07-31T18:58:58Z
2019-06-07T18:34:01Z
https://github.com/chakra-core/ChakraCore/issues/5559
346,316,819
5,559
[ "chakra-core", "ChakraCore" ]
As @huaiyudavid recently pointed out, jshost respects `-forceSerialized` (checked in `ScriptEngine::CompileUTF8Core`), but ch seems to have no corresponding code.
support `-forceSerialized` command line switch in ch
https://api.github.com/repos/chakra-core/ChakraCore/issues/5558/comments
5
2018-07-30T20:27:47Z
2018-08-22T23:15:40Z
https://github.com/chakra-core/ChakraCore/issues/5558
345,921,956
5,558
[ "chakra-core", "ChakraCore" ]
Currently, the parser does not recognize the destructuring object/array as an array rest parameter and as such, everything in the object/array remains uninitialized. However, the specific case of having object destructuring works syntactically (see issue #5550). For example: ``` function foo(a, ...{...rest}) { c...
Destructuring unrecognized when nested in Array Rest
https://api.github.com/repos/chakra-core/ChakraCore/issues/5551/comments
3
2018-07-27T21:20:58Z
2019-05-28T20:05:09Z
https://github.com/chakra-core/ChakraCore/issues/5551
345,369,866
5,551
[ "chakra-core", "ChakraCore" ]
The unit test in destructuring_bugs.js, "Rest as pattern at param with arguments/eval at function body" yields differing values from other engines. The eshost output is attached below: ``` #### ch-1.10.1 4 5 3 3 4 5 3 1,2 #### sm undefined undefined 3 3 undefined undefined 3 1,2 #### node und...
Differing behavior with other engines for nested destructuring in array rest
https://api.github.com/repos/chakra-core/ChakraCore/issues/5550/comments
0
2018-07-27T21:15:49Z
2019-05-28T20:05:09Z
https://github.com/chakra-core/ChakraCore/issues/5550
345,368,655
5,550
[ "chakra-core", "ChakraCore" ]
Hi everyone, according to [9.4.5.3](https://www.ecma-international.org/ecma-262/8.0/index.html#sec-integer-indexed-exotic-objects-defineownproperty-p-desc) it is possible define a property key if it is a numeric index, Chakra throws a TypeError instead. OS: Ubuntu 16.04 version: 1.10.1 Steps to reproduce: ``` ...
Chakra should returns false if key is a numeric index and desc.writable is false
https://api.github.com/repos/chakra-core/ChakraCore/issues/5549/comments
2
2018-07-27T21:01:59Z
2018-08-15T20:09:32Z
https://github.com/chakra-core/ChakraCore/issues/5549
345,365,417
5,549
[ "chakra-core", "ChakraCore" ]
Hi everyone, according to [24.3.4.13](https://www.ecma-international.org/ecma-262/8.0/index.html#sec-dataview.prototype.setfloat32) DataView.setFloat32 should cast to NaN when value argument is not present. OS: Ubuntu 16.04 version: 1.10.1 steps to reproduce: ``` var buffer = new ArrayBuffer(8); var sample ...
DataView.setFloat32 should convert undefined value to NaN
https://api.github.com/repos/chakra-core/ChakraCore/issues/5548/comments
2
2018-07-27T19:04:07Z
2020-04-12T00:36:10Z
https://github.com/chakra-core/ChakraCore/issues/5548
345,334,279
5,548
[ "chakra-core", "ChakraCore" ]
If I try to instantiate a Intl.DateTimeFormat with very specific values (see below) I get the above exception. So far this only happens with these values. Tried others combinations (for dates, times) and they all seems to be working. This is not locale specific. It happens with any available locale. ``` new Int...
Invalid procedure call or argument on Intl.DateTimeFormat
https://api.github.com/repos/chakra-core/ChakraCore/issues/5544/comments
13
2018-07-27T18:17:22Z
2018-08-23T00:04:41Z
https://github.com/chakra-core/ChakraCore/issues/5544
345,320,507
5,544
[ "chakra-core", "ChakraCore" ]
flatMap and flat are now Stage 3. https://github.com/tc39/proposal-flatMap
Implement Array.prototype.flatMap, Array.prototype.flat
https://api.github.com/repos/chakra-core/ChakraCore/issues/5543/comments
7
2018-07-27T10:30:18Z
2018-08-17T23:03:24Z
https://github.com/chakra-core/ChakraCore/issues/5543
345,175,600
5,543
[ "chakra-core", "ChakraCore" ]
The code uses `handler == null ` all over the place as the way to check for revocations. That is a very confusing practice as it came up in https://github.com/Microsoft/ChakraCore/pull/5529
Add an `IsRevoked` helper to JavascriptProxy for more code clarity
https://api.github.com/repos/chakra-core/ChakraCore/issues/5542/comments
1
2018-07-26T23:51:13Z
2020-04-12T06:37:03Z
https://github.com/chakra-core/ChakraCore/issues/5542
345,043,617
5,542
[ "chakra-core", "ChakraCore" ]
I discovered that ChakraCore has supported ETW (https://github.com/Microsoft/ChakraCore/pull/1986 , https://github.com/Microsoft/ChakraCore/issues/328) I want to leverage this powerful tool for CPU profiling and further analysis, for example, which is the hotspot in JS program/runtime, but I still can't find a way ...
How to do profiling with ETW
https://api.github.com/repos/chakra-core/ChakraCore/issues/5541/comments
7
2018-07-26T22:09:44Z
2018-07-30T23:30:53Z
https://github.com/chakra-core/ChakraCore/issues/5541
345,022,945
5,541
[ "chakra-core", "ChakraCore" ]
the following js code fragment can lead to a null pointer dereference. ``` function g() { for (var i=0;;++i) { for (var j=0;;++j){ var a =0; } } } g(); ``` ==10216==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55b703964384 bp 0x7ffd0824...
null pointer dereference in EmitBooleanExpression
https://api.github.com/repos/chakra-core/ChakraCore/issues/5532/comments
5
2018-07-26T11:04:38Z
2018-08-31T17:43:39Z
https://github.com/chakra-core/ChakraCore/issues/5532
344,797,690
5,532
[ "chakra-core", "ChakraCore" ]
Hello, executing following code ``` var keys="" var already_non_enmerable = false; var getPrototypeOfCalled = 0; var proxy = new Proxy({}, { ownKeys: function() { return ['a','b','a']; // make first a non-enumerable, and second a enumerable, second a won't show up }, getOwnPropertyDescriptor: functi...
proxy [[OwnPropertyKeys]] shouldn't return duplicate entries
https://api.github.com/repos/chakra-core/ChakraCore/issues/5531/comments
2
2018-07-26T01:57:22Z
2018-07-30T19:35:20Z
https://github.com/chakra-core/ChakraCore/issues/5531
344,666,711
5,531
[ "chakra-core", "ChakraCore" ]
Hi, The following code behaves incorrectly (inconsistent with other engines). ``` new class extends new Proxy(class {},{}) {} ``` In ChakraCore, the output is `TypeError: Object doesn't support this action` However, in V8 , SpiderMonkey and JSC, output is `BT_FLAG` BT group 2018.7.25
Throw TypeError when new an object extends Proxy object
https://api.github.com/repos/chakra-core/ChakraCore/issues/5523/comments
3
2018-07-25T12:56:31Z
2018-07-26T00:00:12Z
https://github.com/chakra-core/ChakraCore/issues/5523
344,431,948
5,523
[ "chakra-core", "ChakraCore" ]
ChakraCore/test/typedarray/Uint8ClampedArray_es6.baseline contains output of asserts failing. The corresponding js file should be changed to assert based on expected behavior.
Investigate and possibly fix asserts failing in baseline
https://api.github.com/repos/chakra-core/ChakraCore/issues/5520/comments
1
2018-07-24T22:28:13Z
2018-07-26T00:00:47Z
https://github.com/chakra-core/ChakraCore/issues/5520
344,226,460
5,520
[ "chakra-core", "ChakraCore" ]
Currently, if we're doing virtual typed array access and don't know whether the offset for the load of an element is necessarily within the 4GB reserved region, we insert bounds checks. However, we seem to do this too often, and in ways that don't give the best perf possible. Consider the following code under `-mic:1 -...
Potential improvement for virtual typed array access
https://api.github.com/repos/chakra-core/ChakraCore/issues/5517/comments
0
2018-07-24T20:58:50Z
2018-07-24T20:59:09Z
https://github.com/chakra-core/ChakraCore/issues/5517
344,201,343
5,517
[ "chakra-core", "ChakraCore" ]
Most JS functions will have a bailout or something that uses native code data, but wasm functions never will (or almost never). We should change to only emit this instruction only if we actually need it. It's a bit tricky to track, since most of the uses are introduced during lowerer or later, but it should be doable.
don't emit LdNativeCodeData if function doesn't use any
https://api.github.com/repos/chakra-core/ChakraCore/issues/5516/comments
0
2018-07-24T19:16:22Z
2018-07-24T19:16:22Z
https://github.com/chakra-core/ChakraCore/issues/5516
344,168,320
5,516
[ "chakra-core", "ChakraCore" ]
Hello, The following code behaves strangely (inconsistent with other engines). ``` var test = 1; function fail(n, expected, result) { print("test " + test + "; expected " + expected + ", got " + result); } function test0() { var result; var check; result = (~ 2147483647); check = this; ...
Global object has no toStringTag unlike other engines
https://api.github.com/repos/chakra-core/ChakraCore/issues/5513/comments
4
2018-07-24T14:07:42Z
2018-08-10T23:47:46Z
https://github.com/chakra-core/ChakraCore/issues/5513
344,053,896
5,513
[ "chakra-core", "ChakraCore" ]
Hello, The following code behaves strangely (inconsistent with other engines). ``` var testCount = 0; function test(re, str, lastIndex, loopCount) { var formattedStr = str.replace(loopCount, '\\n') print('********** Test #' * ++testCount+ " **********"); re.lastIndex = lastIndex; for(var...
Incorrect realization of lastIndex of RegExp
https://api.github.com/repos/chakra-core/ChakraCore/issues/5512/comments
1
2018-07-24T14:00:04Z
2020-03-25T08:53:49Z
https://github.com/chakra-core/ChakraCore/issues/5512
344,050,518
5,512
[ "chakra-core", "ChakraCore" ]
Hello, The following code behaves strangely (inconsistent with other engines). ``` function test() { x = 4; do { var ss = 100; function ss() { print("in func"); } x--; ss = 101; } while(x>0) } test(); print("BT_FLAG") ``` In ChakraCore, the output is `BT_FLAG`...
Inconsistent output compared with other JS engines
https://api.github.com/repos/chakra-core/ChakraCore/issues/5511/comments
5
2018-07-24T13:52:07Z
2020-04-13T18:31:35Z
https://github.com/chakra-core/ChakraCore/issues/5511
344,046,953
5,511
[ "chakra-core", "ChakraCore" ]
Hello, The following code behaves strangely (inconsistent with other engines). ``` function testToUint32InSplit() { var re; function toDictMode() { re.x = 42; delete re.x; return "def"; } re *= /./g // Needs to be global to trigger lastIndex accesses. return testToStringInReplace(toD...
Support for regexp symbols like Symbol.split not enabled by default
https://api.github.com/repos/chakra-core/ChakraCore/issues/5510/comments
2
2018-07-24T08:21:07Z
2020-03-25T08:54:01Z
https://github.com/chakra-core/ChakraCore/issues/5510
343,932,927
5,510
[ "chakra-core", "ChakraCore" ]
Hello, The following code behaves strangely (inconsistent with other engines). ``` checkNaN('b', 'a'.replace(/a/, new Proxy(() => 'b', {}))); if(!isNaN(Math.pow())) { print("error: Math.pow() is not NaN"); } print("done"); function check(result, x, y) { var rs = Math.pow(x, y); if ( Math.abs(...
Regex replace with proxied function attempts to stringify proxy instead of call it
https://api.github.com/repos/chakra-core/ChakraCore/issues/5509/comments
2
2018-07-24T08:14:55Z
2018-07-25T23:58:32Z
https://github.com/chakra-core/ChakraCore/issues/5509
343,930,931
5,509
[ "chakra-core", "ChakraCore" ]
Hello, The following code behaves incorrectly (inconsistent with other engines). ``` RegExp.prototype.__defineGetter__("global", () => true); print("BT_FLAG"); ``` In ChakraCore, the output is `TypeError: Cannot redefine non-configurable property 'global'` However, in V8 , SpiderMonkey and JSC, output is `...
Inconsistent output compared with other JS engines when handling global property of RegExp
https://api.github.com/repos/chakra-core/ChakraCore/issues/5508/comments
2
2018-07-24T08:02:49Z
2020-03-25T08:54:14Z
https://github.com/chakra-core/ChakraCore/issues/5508
343,927,122
5,508
[ "chakra-core", "ChakraCore" ]
I have attached crashing inputs [crashes-jit.zip](https://github.com/Microsoft/ChakraCore/files/2220301/crashes-jit.zip) with backtrace and context during crash. To reproduce the issue run `ch` on **linux** with the crashing input as script: ```bash $ ./ch <crashing input> ``` The crash only occurs when `new Arr...
Crash in ProfiledNewScObjArraySpread_Jit on linux
https://api.github.com/repos/chakra-core/ChakraCore/issues/5503/comments
0
2018-07-23T17:20:06Z
2018-07-25T18:03:54Z
https://github.com/chakra-core/ChakraCore/issues/5503
343,722,206
5,503
[ "chakra-core", "ChakraCore" ]
``` new Date( "2018-07-23 09:53:16.752-07:00" ); ``` The above results (in Edge console) `[date] Invalid Date: ` Firefox and chorme have supported this for 8+ years. https://stackoverflow.com/questions/2182246/date-constructor-returns-nan-in-ie-but-works-in-firefox-and-chrome ``` new Date( "2018-07-2...
Failure to parse date strings with timeone
https://api.github.com/repos/chakra-core/ChakraCore/issues/5502/comments
2
2018-07-23T17:19:55Z
2018-08-16T18:45:31Z
https://github.com/chakra-core/ChakraCore/issues/5502
343,722,153
5,502
[ "chakra-core", "ChakraCore" ]
There is a bug in the initialisation of module namespace objects when the module contains an indirect export. Simple proof of concept ```js //test.mjs export {bar as foo} from "./test.mjs"; export const bar = 5; import * as stuff from "./test.mjs"; print(JSON.stringify(stuff)); //prints {"bar":5} - should pr...
BUG: Module namespace objects have undefined Indirect exports
https://api.github.com/repos/chakra-core/ChakraCore/issues/5501/comments
1
2018-07-23T16:31:27Z
2018-10-31T19:15:47Z
https://github.com/chakra-core/ChakraCore/issues/5501
343,706,490
5,501
[ "chakra-core", "ChakraCore" ]
I found this via [an example on StackOverflow](https://stackoverflow.com/a/34717402/3918980) using the `RegExp` "/u" (Unicode) flag with `String.prototype.split` to convert a string into an array of characters without destroying surrogate pairs. The author noted this does not work in Edge (which I confirmed). Repro:...
String.prototype.split with RegExp "/u" flag breaks surrogate pairs
https://api.github.com/repos/chakra-core/ChakraCore/issues/5500/comments
3
2018-07-23T16:31:22Z
2018-07-26T00:14:05Z
https://github.com/chakra-core/ChakraCore/issues/5500
343,706,450
5,500
[ "chakra-core", "ChakraCore" ]
I had an issue with my debugserver crashing when attempting to examine module namespace objects, so I investigated. It turns out that the ChakraCore debugger serializes module namespace objects quite a bit differently than it does for any other object. I ran the following in miniSphere while under control of SSj: ...
Module namespace object when examined in debugger has no value, type, etc.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5499/comments
0
2018-07-22T17:59:07Z
2019-06-07T18:49:53Z
https://github.com/chakra-core/ChakraCore/issues/5499
343,425,818
5,499
[ "chakra-core", "ChakraCore" ]
This code should print both properties but only prints one: ```javascript const blah = {"\0":"hi","\0\0":"hello"}; for (var i in new Proxy(blah, {})) console.log(blah[i]); ``` This is because JavascriptProxy::ProxyOwnkeysEnumerator::MoveAndGetNext is using a hash set of null-terminated strings, so it doesn't h...
proxy property enumeration can skip items
https://api.github.com/repos/chakra-core/ChakraCore/issues/5492/comments
0
2018-07-20T16:20:27Z
2018-08-03T15:13:42Z
https://github.com/chakra-core/ChakraCore/issues/5492
343,168,589
5,492
[ "chakra-core", "ChakraCore" ]
When trying to extend a set to allow unique custom objects, I found an error stating: `Set: 'this' is not a Set object` Recreation: https://jsfiddle.net/9xknubyj/
TypeScript class extending Set returns error.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5491/comments
6
2018-07-20T11:04:11Z
2018-07-25T23:43:42Z
https://github.com/chakra-core/ChakraCore/issues/5491
343,066,414
5,491
[ "chakra-core", "ChakraCore" ]
Specifically `processNativeCodeSize` and `nativeCodeSize` on ThreadContext.
Redeferral should update the total jitted code size, so new functions don't hit the max jitted code cap.
https://api.github.com/repos/chakra-core/ChakraCore/issues/5487/comments
0
2018-07-19T20:46:44Z
2019-06-07T18:32:44Z
https://github.com/chakra-core/ChakraCore/issues/5487
342,883,244
5,487
[ "chakra-core", "ChakraCore" ]
Found from searching the spec for uses of `isCallable` after hitting #5479. This repros on the latest ChakraCore from master today. Repro: ```javascript // returns `[2]` Array.from([1], () => 2); // returns `[2]` in Chrome (V8) and Firefox // throws "TypeError: Array.from: argument is not a Function object" i...
Calling `Array.from` fails when passed a `Proxy` of a `function`
https://api.github.com/repos/chakra-core/ChakraCore/issues/5480/comments
1
2018-07-18T17:51:36Z
2019-06-01T01:54:55Z
https://github.com/chakra-core/ChakraCore/issues/5480
342,429,684
5,480
[ "chakra-core", "ChakraCore" ]
Another variation of #4730 and #5282 where a `Proxy` to a `function` is not treated as callable. Unlike those issues this still repros after building the latest ChakraCore from master today. Repro: ```javascript // returns "best" 'test'.replace(/t/, function(c) { return 'b' }, {}); // returns "best" in Chrome ...
Calling `String.prototype.replace` stringifies a `Proxy` of a `function` instead of invoking it
https://api.github.com/repos/chakra-core/ChakraCore/issues/5479/comments
0
2018-07-18T17:44:16Z
2019-06-04T17:44:45Z
https://github.com/chakra-core/ChakraCore/issues/5479
342,427,166
5,479
[ "chakra-core", "ChakraCore" ]
Hi everyone, I found a case of inconsistency using `eval` to evaluate a function that have a comma after function params. OS: Ubuntu 16.04 x64 Version: 1.10.1 Step to reproduce: ``` let fun = (a,b) => { print( a + b ); } fun(1,2) fun(1,2, ) fun = (a,b, ) => { print( a + b ); } // with comma after params ...
Chakra should eval function with comma after params
https://api.github.com/repos/chakra-core/ChakraCore/issues/5478/comments
1
2018-07-18T17:41:33Z
2018-08-07T11:49:58Z
https://github.com/chakra-core/ChakraCore/issues/5478
342,426,361
5,478
[ "chakra-core", "ChakraCore" ]
Hello, The following code behaves strangely (inconsistent with other engines). ``` class c { [d = function () { return c; }]() { } } print("BT_FLAG"); ...
Inconsistent output compared with other JS engines
https://api.github.com/repos/chakra-core/ChakraCore/issues/5477/comments
1
2018-07-18T14:28:49Z
2018-09-15T00:37:28Z
https://github.com/chakra-core/ChakraCore/issues/5477
342,353,472
5,477
[ "chakra-core", "ChakraCore" ]
I can't find instructions on how to build ChakraCore as a library for UWP and I am not sure whether is better to use the ChakraRT that is part of the UWP platform or build and embed your own. - Is the regular build UWP compatible or there is something that I am missing? - What are the differences between using C...
Buiding and using ChakraCore for UWP applications
https://api.github.com/repos/chakra-core/ChakraCore/issues/5470/comments
8
2018-07-17T19:52:22Z
2020-11-13T20:27:08Z
https://github.com/chakra-core/ChakraCore/issues/5470
342,060,694
5,470
[ "chakra-core", "ChakraCore" ]
Hello, I am working on some porting from V8 implemented [Unreal Engine Javascript plugin](https://github.com/ncsoft/Unreal.js-core) to [ChakraCore implementation](https://github.com/ninemcom/Unreal.js-core). Its primary objective is supporting mobile devices(iOS, Android) and I got success from most devices. But I g...
Some tips for multithread debugging?
https://api.github.com/repos/chakra-core/ChakraCore/issues/5463/comments
5
2018-07-16T00:22:59Z
2018-08-02T04:37:14Z
https://github.com/chakra-core/ChakraCore/issues/5463
341,364,795
5,463
[ "chakra-core", "ChakraCore" ]
This is a bit of an odd one. I've narrowed things down with a reproducer for investigation but I'm not at all sure how to really debug this further. The end result is a segfault on this line: https://github.com/Microsoft/ChakraCore/blob/de80038b6ce0d224e121ff2439564a95dfbcd3a6/lib/Common/Memory/RecyclerWriteBarrierM...
Segfault in RecyclerWriteBarrierManager::WriteBarrier
https://api.github.com/repos/chakra-core/ChakraCore/issues/5461/comments
5
2018-07-13T21:57:28Z
2018-07-18T17:21:08Z
https://github.com/chakra-core/ChakraCore/issues/5461
341,171,144
5,461
[ "chakra-core", "ChakraCore" ]
Hi everyone, I decide to disable ENABLE_CONCURRENT_GC, because in our application we don't want extra reserved memory for barriers table, but this result in serious performance implications.Basicly our application spend 95% of the time in GC, because it looks like every API call trigger cleanup. So i decide to disa...
Bad performance when disable concurrent GC
https://api.github.com/repos/chakra-core/ChakraCore/issues/5458/comments
6
2018-07-13T10:52:45Z
2019-06-07T18:48:27Z
https://github.com/chakra-core/ChakraCore/issues/5458
340,973,883
5,458
[ "chakra-core", "ChakraCore" ]
Hi everyone, I would like to report an issue when using "use strict" and declaring a function twice on same scope the others engines raises a SyntaxError, maybe this issue is a dupe of #5076. Chakra: 1.10.1 OS: Ubuntu 16.04 x86 Steps to reproduce: ``` function test() { "use strict"; function f() { ...
Chakra should throw SyntaxError when declaring function twice with "use strict"
https://api.github.com/repos/chakra-core/ChakraCore/issues/5453/comments
3
2018-07-12T14:26:31Z
2018-07-14T02:04:09Z
https://github.com/chakra-core/ChakraCore/issues/5453
340,661,861
5,453