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"
] |
`JsDiagSetBreakpoint()` when called on a ES module returns JsErrorDiagUnableToPerformAction and the breakpoint is not honored. Debugging ES modules seems to work otherwise, but I can't set breakpoints in them π
|
Breakpoints can't be set in an ES module
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3701/comments
| 3 |
2017-09-11T14:22:48Z
|
2017-09-12T01:34:38Z
|
https://github.com/chakra-core/ChakraCore/issues/3701
| 256,720,822 | 3,701 |
[
"chakra-core",
"ChakraCore"
] |
On linux (Mint 17.03)
GCC 4.8.4
Kernel 4.2.0-25
Testing with 9.4 GB of free memory.
I compiled ChakraCore from source (with all dependencies already installed)
"git clone https://github.com/Microsoft/ChakraCore.git"
"./build.sh -j=4 --target=linux --with-intl"
I also tried the pre built library. Downloaded from azure with the same results.
The following program reproduce the problem randomly. The lower the amount of threads the less likely the issue is to manifest itself, with 100 threads the odds are about 1 in 10 execution of the program. I've encountered the problem with a thread count as low as 10.
```
void* ContextCreationTest(void * p_param) {
JsRuntimeHandle runtime;
JsContextRef context;
JsErrorCode err;
err = JsCreateRuntime(JsRuntimeAttributeNone,nullptr,&runtime);
if(err != JsNoError) {
cout << "runtime creation error " << hex << err << endl;
return nullptr;
}
err = JsCreateContext(runtime,&context);
JsDisposeRuntime(runtime);
if(err != JsNoError)
cout << "context creation error " << hex << err << endl;
return nullptr;
}
int main() {
int nbThreads = 100;
pthread_t threads[nbThreads];
for(auto i = 0 ; i < nbThreads; ++i) {
pthread_create(&threads[i],nullptr,&ContextCreationTest,nullptr);
}
void* threadReturn;
for(auto i = 0 ; i < nbThreads; ++i) {
pthread_join(threads[i],&threadReturn);
}
return 0;
}
```
|
JsCreateContext in a new thread sometimes fail with JsErrorOutOfMemory
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3700/comments
| 17 |
2017-09-11T13:26:17Z
|
2017-11-11T00:34:05Z
|
https://github.com/chakra-core/ChakraCore/issues/3700
| 256,701,729 | 3,700 |
[
"chakra-core",
"ChakraCore"
] |
Typescript has a great error message. When encountering lines generated by a merge conflict (and left in if unresolved or incorrectly resolved):
`error TS1185: Merge conflict marker encountered.`
Note: This wouldn't be able to detect markers inside of multiline-strings.
/cc @bterlson
|
Request: SyntaxError message for Merge conflict marker (as detected by TypeScript)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3698/comments
| 4 |
2017-09-09T00:18:14Z
|
2017-09-09T01:39:01Z
|
https://github.com/chakra-core/ChakraCore/issues/3698
| 256,400,421 | 3,698 |
[
"chakra-core",
"ChakraCore"
] |
I would like to allow my debugger to attach to a running instance of miniSphere, as can be done with a native code debugger. However, if I call `JsDiagStartDebugging()` during active JS execution (i.e. any time the JS call stack is not empty), I get `JsErrorRuntimeInUse` and debugging is not enabled.
Is this by design? The comment here https://github.com/Microsoft/ChakraCore/issues/3628#issuecomment-326651449 implied it was allowed to start debugging in the middle of execution.
|
Unable to attach debugger during execution
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3697/comments
| 2 |
2017-09-08T21:16:06Z
|
2017-09-08T21:44:05Z
|
https://github.com/chakra-core/ChakraCore/issues/3697
| 256,373,617 | 3,697 |
[
"chakra-core",
"ChakraCore"
] |
Found by reading code and wondering "what does this button do?"
Apparently Intl.* constructors do not actually have to be called with new, and can be called with anything as the target.
Using `Intl` or `undefined` as the target (first param of `call`) produces the same result as calling new.
Specifically allowing the target to be `Intl` or `undefined` (see Intl.js code, snippet below) allows for calling as `Intl.NumberFormat` and assigning the same to a var and then calling, producing the same results.
```js
// function NumberFormat
if (this === Intl || this === undefined) {
// after the call to the same function using new, this === NumberFormat, but any other value of this will be allowed past this check, leading to strange behavior
return new NumberFormat(locales, options);
}
```
```
## Source
let options = {style:'currency', currency:'USD'};
print(new Intl.NumberFormat('en-us', options).format(42));
print(Intl.NumberFormat.call(Intl, 'en-us', options).format(42));
print(Intl.NumberFormat.call(undefined, 'en-us', options).format(42));
print(Intl.NumberFormat('en-us', options).format(42)); /* call(Intl, ...) */
nf = Intl.NumberFormat;
print(nf('en-us', options).format(42)); /* call(undefined, ...) */
ββββββββββββββββββββ¬βββββββββ
β ch-1.7.1 β $42.00 β
β ch-master-latest β $42.00 β
β d8 β $42.00 β
β jsc β $42.00 β
β node β $42.00 β
β node-ch β β
β sm β β
ββββββββββββββββββββ΄βββββββββ
```
Using anything else apparently returns the object passed in:
```
## Source
let options = {style:'currency', currency:'USD'};
let a = Intl.NumberFormat.call({}, 'en-us', options);
print(a);
print(a.format(42));
ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β d8 β [object Object] β
β jsc β $42.00 β
β sm β β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ch-1.7.1 β [object Object] β
β ch-master-latest β TypeError: Object doesn't support property or method 'format' β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β node-ch β {} β
β β TypeError: Object doesn't support property or method 'format' β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β node β NumberFormat {} β
β β $42.00 β
ββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
```
## Source
let options = {style:'currency', currency:'USD'};
let a = Intl.NumberFormat.call(function foo() {}, 'en-us', options);
print(a);
print(a.format(42));
ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β d8 β [object Object] β
β jsc β $42.00 β
β sm β β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ch-1.7.1 β function foo() {} β
β ch-master-latest β TypeError: Object doesn't support property or method 'format' β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β node-ch β [Function: foo] β
β β TypeError: Object doesn't support property or method 'format' β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β node β NumberFormat {} β
β β $42.00 β
ββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
```
## Source
let options = {style:'currency', currency:'USD'};
let a = Intl.NumberFormat.call(new (function foo() {}), 'en-us', options);
print(a);
print(a.format(42));
ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β d8 β [object Object] β
β jsc β $42.00 β
β sm β β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ch-1.7.1 β [object Object] β
β ch-master-latest β TypeError: Object doesn't support property or method 'format' β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β node-ch β foo {} β
β β TypeError: Object doesn't support property or method 'format' β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β node β NumberFormat {} β
β β $42.00 β
ββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
Which leads to fun things like formatting a Date with something you would have hoped was a NumberFormat object
```
## Source
let a = Intl.NumberFormat.call(Intl.DateTimeFormat, 'en-us', { style: 'percent' });
print(a);
print((a.format || (new a).format)(new Date(2017,0,1)));
ββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β d8 β [object Object] β
β jsc β 148,325,760,000,000% β
β sm β β
ββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ch-1.7.1 β function DateTimeFormat() { [native code] } β
β ch-master-latest β ?1?/?1?/?2017 β
ββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β node-ch β { [Function: DateTimeFormat] __relevantExtensionKeys: [ 'ca', 'nu' ] } β
β β β1β/β1β/β2017 β
ββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β node β NumberFormat {} β
β β 148,325,760,000,000% β
ββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
|
Intl.[ctor] called with unusual target produces strange behavior
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3692/comments
| 4 |
2017-09-08T06:47:27Z
|
2018-08-28T15:50:50Z
|
https://github.com/chakra-core/ChakraCore/issues/3692
| 256,156,488 | 3,692 |
[
"chakra-core",
"ChakraCore"
] |
I observed strange behavior while using Intl library for number format purpose. I tried this code on **IE 11** with document mode **Edge**. Code mentioned below produces output `40.42` but it should be `40.43`
`Intl.NumberFormat("ja-JP",{style: "decimal", currency: "JPY", minimumFractionDigits: 2, maximumFractionDigits: 2}).format(40.425)`
I observed the same erroneous output for floating numbers from - `32.425` to `40.425`, keeping the decimal fraction `.425` or `.925`. Below are some cases that I ran.
**Cases with wrong output**
Input => Output
`32.425 => 32.42`
`37.425 => 37.42`
`32.925 => 32.92`
`37.925 => 37.92`
**Cases with correct output**
Input => Output
`32.625 => 32.63`
`37.257 => 37.26`
`45.425 => 45.43`
`12.925 => 12.93`
If I change the style from **decimal** to **currency** then output for `40.425` comes out to be `40.43` which is correct. But for **decimal** style output is `40.42`.
|
Intl NumberFormat bug for floating point number rounding behavior
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3691/comments
| 2 |
2017-09-08T04:26:52Z
|
2017-11-08T00:48:13Z
|
https://github.com/chakra-core/ChakraCore/issues/3691
| 256,137,688 | 3,691 |
[
"chakra-core",
"ChakraCore"
] |
Minor cosmetic issue, block-scoped variables still in TDZ are reported as having a string value in the debugger:
```
@/scripts/main.js:37 game()
(ssj) v
pig: number = 812
cow: string = it eats cats
ape: string = [Uninitialized block variable]
dayNight: string = [Uninitialized block variable]
session: string = [Uninitialized block variable]
```
I think it would be cleaner if these were reported as `TDZ` or `uninitialized` instead of `string`.
|
Variables in TDZ reported as strings in debugger
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3690/comments
| 0 |
2017-09-08T03:55:04Z
|
2017-09-11T17:01:56Z
|
https://github.com/chakra-core/ChakraCore/issues/3690
| 256,134,041 | 3,690 |
[
"chakra-core",
"ChakraCore"
] |
I have JsDiagBreakOnExceptionAttributeUncaught enabled. Normally, errors are caught as soon as they're thrown. I've noticed, however, that if an error is thrown inside a for...of loop, entire stack frames can be unwound before the error is intercepted, losing valuable debugging information in the process. Here's an example, illustrated by my SSj debugger:
```
D:\src\spectacles-i>ssj dist
SSj X.X.X Sphere JavaScript debugger (x64)
the powerful symbolic JS debugger for Sphere
(c) 2015-2017 Fat Cerberus
starting 'D:/src/spectacles-i/dist/'... OK.
connecting to 127.0.0.1:1208... OK.
establishing communication... OK.
querying target... OK.
game: Spectacles: Bruce's Story
author: Fat Cerberus
=> # 0: [anon] at src/main.js:6
6 RequireSystemScript('persist.js');
src/main.js:6 [anon]
(ssj) c
UNCAUGHT: Error: The pig ate everything at 8:12
at Anonymous function (src/main.js:45:12)
at game (src/main.js:45:4)
=> # 0: [anon] at src/main.js:49
49 Console.initialize({ hotKey: Key.Tilde });
src/main.js:49 [anon]
(ssj) l 20
39
40 persist.init();
41
42 var evens = from([ 1, 2, 3, 4, 5, 6 ])
43 .where(it => it % 2 == 0);
44 for (let even of evens) {
45 (() => { throw new Error("The pig ate everything at 8:12"); })();
46 SSj.log(even);
47 }
48
=> 49 Console.initialize({ hotKey: Key.Tilde });
50 Console.defineObject('yap', null, {
51 'on': function() {
52 Sphere.Game.disableTalking = false;
53 Console.log("oh, yappy times are here again...");
54 },
55 'off': function() {
56 Sphere.Game.disableTalking = true;
57 Console.log("the yappy times are OVER!");
58 },
src/main.js:49 [anon]
(ssj) bt
=> # 0: [anon] at src/main.js:49
```
Notice the stacktrace of the Error object includes the arrow function, but the `backtrace` output does not, and the breakpoint actually triggered later, completely outside the for...of loop.
If I move the throw outside the loop, then it works as expected:
```
src/main.js:6 [anon]
(ssj) c
UNCAUGHT: Error: The pig ate everything at 8:12
at Anonymous function (src/main.js:42:11)
at game (src/main.js:42:3)
=> # 0: [anon] at src/main.js:42
42 (() => { throw new Error("The pig ate everything at 8:12"); })();
src/main.js:42 [anon]
(ssj) bt
=> # 0: [anon] at src/main.js:42
# 1: [anon] at src/main.js:42
```
|
Debugger doesn't catch error thrown inside for...of loop immediately
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3685/comments
| 9 |
2017-09-07T13:28:25Z
|
2019-10-31T00:14:17Z
|
https://github.com/chakra-core/ChakraCore/issues/3685
| 255,936,908 | 3,685 |
[
"chakra-core",
"ChakraCore"
] |
Use these operations to refactor `getExtensionSubtags`
See TODOs under #3680
|
Intl: expose platform.StringInstanceSplit and platform.ArrayInstanceFilter
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3683/comments
| 1 |
2017-09-07T07:48:23Z
|
2017-12-19T21:22:59Z
|
https://github.com/chakra-core/ChakraCore/issues/3683
| 255,845,444 | 3,683 |
[
"chakra-core",
"ChakraCore"
] |
I'm trying to examine function handles returned by JsDiagGetStackTrace(), so I can get the names of the functions to display in my command-line debugger. However, doing this invariably results in JsDiagGetProperties() returning `JsErrorDiagUnableToPerformAction`.
|
Trying to examine function in stack trace, JsErrorDiagUnableToPerformAction
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3678/comments
| 12 |
2017-09-07T01:29:27Z
|
2017-09-19T17:21:00Z
|
https://github.com/chakra-core/ChakraCore/issues/3678
| 255,787,992 | 3,678 |
[
"chakra-core",
"ChakraCore"
] |
(2h,P3) Intl-ICU: Integrate with Node-ChakraCore build system to expose Intl-ICU on Windows
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3677/comments
| 0 |
2017-09-07T01:07:23Z
|
2019-06-07T18:37:59Z
|
https://github.com/chakra-core/ChakraCore/issues/3677
| 255,785,117 | 3,677 |
|
[
"chakra-core",
"ChakraCore"
] |
See description in PR #3214 for description of build options.
|
(2h,P0) Intl-ICU: Integrate with Node-ChakraCore build system to expose Intl-ICU on non-Windows platforms
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3676/comments
| 1 |
2017-09-07T00:03:42Z
|
2017-09-26T19:48:57Z
|
https://github.com/chakra-core/ChakraCore/issues/3676
| 255,776,697 | 3,676 |
[
"chakra-core",
"ChakraCore"
] |
Intl-ICU: On Windows, use ICU from Windows Kit (compile option overrides).
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3675/comments
| 7 |
2017-09-06T23:59:35Z
|
2018-02-22T19:30:06Z
|
https://github.com/chakra-core/ChakraCore/issues/3675
| 255,776,103 | 3,675 |
|
[
"chakra-core",
"ChakraCore"
] |
* [x] Fallback logic (#3654)
* [ ] Implement with ICU
|
Intl-ICU: platform.resolveLocaleBestFit
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3674/comments
| 4 |
2017-09-06T23:50:37Z
|
2018-02-17T01:16:08Z
|
https://github.com/chakra-core/ChakraCore/issues/3674
| 255,774,766 | 3,674 |
[
"chakra-core",
"ChakraCore"
] |
* [x] Fallback logic
* [ ] Implement with ICU
|
(1d,P2) Intl-ICU: platform.resolveLocaleLookup
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3673/comments
| 3 |
2017-09-06T23:49:34Z
|
2017-12-20T00:44:12Z
|
https://github.com/chakra-core/ChakraCore/issues/3673
| 255,774,606 | 3,673 |
[
"chakra-core",
"ChakraCore"
] |
* [x] Implement fallback logic (#3652)
* [ ] Implement with ICU (if necessary after fallback logic as implemented)
|
Intl-ICU: platform.getExtensions
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3672/comments
| 1 |
2017-09-06T23:49:29Z
|
2017-09-29T05:44:08Z
|
https://github.com/chakra-core/ChakraCore/issues/3672
| 255,774,592 | 3,672 |
[
"chakra-core",
"ChakraCore"
] |
(4h) Intl-ICU: Intl.NumberFormat.prototype.format (getter)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3671/comments
| 0 |
2017-09-06T23:49:25Z
|
2017-10-03T22:35:05Z
|
https://github.com/chakra-core/ChakraCore/issues/3671
| 255,774,584 | 3,671 |
|
[
"chakra-core",
"ChakraCore"
] |
(4h) Intl-ICU: Intl.NumberFormat (ctor)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3670/comments
| 0 |
2017-09-06T23:49:20Z
|
2017-10-03T22:35:05Z
|
https://github.com/chakra-core/ChakraCore/issues/3670
| 255,774,569 | 3,670 |
|
[
"chakra-core",
"ChakraCore"
] |
(1d) Intl-ICU: Intl.DateTimeFormat.prototype.formatToParts()
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3669/comments
| 0 |
2017-09-06T23:49:15Z
|
2018-02-15T01:12:26Z
|
https://github.com/chakra-core/ChakraCore/issues/3669
| 255,774,560 | 3,669 |
|
[
"chakra-core",
"ChakraCore"
] |
(4h) Intl-ICU: Intl.DateTimeFormat.prototype.format (getter)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3668/comments
| 0 |
2017-09-06T23:49:11Z
|
2018-02-15T01:12:27Z
|
https://github.com/chakra-core/ChakraCore/issues/3668
| 255,774,552 | 3,668 |
|
[
"chakra-core",
"ChakraCore"
] |
(4h) Intl-ICU: Intl.DateTimeFormat (ctor)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3667/comments
| 0 |
2017-09-06T23:49:06Z
|
2018-02-15T01:12:27Z
|
https://github.com/chakra-core/ChakraCore/issues/3667
| 255,774,539 | 3,667 |
|
[
"chakra-core",
"ChakraCore"
] |
(1d,P1) Intl-ICU: Intl.Collator.prototype.compare (getter)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3666/comments
| 3 |
2017-09-06T23:49:00Z
|
2018-02-15T17:32:27Z
|
https://github.com/chakra-core/ChakraCore/issues/3666
| 255,774,528 | 3,666 |
|
[
"chakra-core",
"ChakraCore"
] |
(4h,P1) Intl-ICU: Intl.Collator (ctor)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3665/comments
| 1 |
2017-09-06T23:48:56Z
|
2017-12-19T21:21:19Z
|
https://github.com/chakra-core/ChakraCore/issues/3665
| 255,774,511 | 3,665 |
|
[
"chakra-core",
"ChakraCore"
] |
(1d) Intl-ICU: platform.formatNumber
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3664/comments
| 0 |
2017-09-06T23:48:51Z
|
2017-10-03T22:35:05Z
|
https://github.com/chakra-core/ChakraCore/issues/3664
| 255,774,499 | 3,664 |
|
[
"chakra-core",
"ChakraCore"
] |
(1d) Intl-ICU: Intl.DateTimeFormat: platform.formatDateTime
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3663/comments
| 0 |
2017-09-06T23:48:46Z
|
2018-02-15T01:12:27Z
|
https://github.com/chakra-core/ChakraCore/issues/3663
| 255,774,488 | 3,663 |
|
[
"chakra-core",
"ChakraCore"
] |
(1d) Intl-ICU: Intl.DateTimeFormat: platform.createDateTimeFormat
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3662/comments
| 0 |
2017-09-06T23:48:41Z
|
2018-02-15T01:12:27Z
|
https://github.com/chakra-core/ChakraCore/issues/3662
| 255,774,482 | 3,662 |
|
[
"chakra-core",
"ChakraCore"
] |
* [x] What is this used for?
* platform.currencyDigits is the number of fractional digits for this currency
* [x] Return a "reasonable" default (2) as a temporary measure.
* [x] Determine if there is an equivalent in ICU
* [x] Implement in ICU
|
(1d) Intl-ICU: platform.currencyDigits
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3661/comments
| 0 |
2017-09-06T23:48:35Z
|
2017-10-03T22:35:04Z
|
https://github.com/chakra-core/ChakraCore/issues/3661
| 255,774,466 | 3,661 |
[
"chakra-core",
"ChakraCore"
] |
* [ ] Harden Intl logic to tolerate falsy returns, and add a fallback value. (See #3769)
* [ ] **Unblock other work:** return the argument string with no validation so that "good inputs" will work (check this in ASAP so that work on Intl.DateTimeFormat can go ahead without a proper implementation).
* [ ] Implement validation and canonicalization.
|
(1d,P3) Intl-ICU: Intl.DateTimeFormat: platform.validateAndCanonicalizeTimeZone
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3660/comments
| 0 |
2017-09-06T23:48:26Z
|
2018-02-15T01:12:27Z
|
https://github.com/chakra-core/ChakraCore/issues/3660
| 255,774,445 | 3,660 |
[
"chakra-core",
"ChakraCore"
] |
* [ ] Fallback logic (default value) (See #3769)
* [ ] Implement with ICU
|
(4h,P3) Intl-ICU: platform.getDefaultTimeZone
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3659/comments
| 1 |
2017-09-06T23:48:21Z
|
2018-02-15T17:31:46Z
|
https://github.com/chakra-core/ChakraCore/issues/3659
| 255,774,434 | 3,659 |
[
"chakra-core",
"ChakraCore"
] |
* [x] Implement fallback logic with default value
* [ ] Implement with ICU
|
(4h,P3) Intl-ICU: platform.getDefaultLocale
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3658/comments
| 0 |
2017-09-06T23:48:14Z
|
2017-10-03T22:35:04Z
|
https://github.com/chakra-core/ChakraCore/issues/3658
| 255,774,412 | 3,658 |
[
"chakra-core",
"ChakraCore"
] |
Intl-ICU: platform.isWellFormedLanguageTag
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3657/comments
| 0 |
2017-09-06T23:46:43Z
|
2017-09-06T23:47:33Z
|
https://github.com/chakra-core/ChakraCore/issues/3657
| 255,774,179 | 3,657 |
|
[
"chakra-core",
"ChakraCore"
] |
Intl-ICU: platform.normalizeLanguageTag
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3656/comments
| 0 |
2017-09-06T23:46:40Z
|
2017-09-06T23:47:19Z
|
https://github.com/chakra-core/ChakraCore/issues/3656
| 255,774,169 | 3,656 |
|
[
"chakra-core",
"ChakraCore"
] |
Intl-ICU: implement getCanonicalLocales
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3655/comments
| 0 |
2017-09-06T23:46:37Z
|
2017-09-06T23:47:06Z
|
https://github.com/chakra-core/ChakraCore/issues/3655
| 255,774,158 | 3,655 |
|
[
"chakra-core",
"ChakraCore"
] |
Next steps: #3674
|
Intl.js fallback: platform.resolveLocaleBestFit
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3654/comments
| 0 |
2017-09-06T23:38:32Z
|
2017-09-20T21:06:42Z
|
https://github.com/chakra-core/ChakraCore/issues/3654
| 255,772,931 | 3,654 |
[
"chakra-core",
"ChakraCore"
] |
Next steps: #3673
|
Intl.js fallback: platform.resolveLocaleLookup
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3653/comments
| 0 |
2017-09-06T23:38:29Z
|
2017-09-20T21:06:29Z
|
https://github.com/chakra-core/ChakraCore/issues/3653
| 255,772,925 | 3,653 |
[
"chakra-core",
"ChakraCore"
] |
Next step: #3672
|
Intl.js fallback: platform.getExtensions
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3652/comments
| 0 |
2017-09-06T23:38:16Z
|
2017-09-20T21:05:52Z
|
https://github.com/chakra-core/ChakraCore/issues/3652
| 255,772,888 | 3,652 |
[
"chakra-core",
"ChakraCore"
] |
Not a real problem for our release builds, but can add noise to ASAN runs of debug/test-only tests, where Output::Print is used.
|
ASAN: Output::buffer isn't properly freed
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3651/comments
| 1 |
2017-09-06T19:29:18Z
|
2018-06-07T00:06:41Z
|
https://github.com/chakra-core/ChakraCore/issues/3651
| 255,716,827 | 3,651 |
[
"chakra-core",
"ChakraCore"
] |
ChakraCore internals use both Js::PropertyId and Js::PropertyRecord, on top of these we have the local property indexes and property names (string).
*IsEnumerable, *IsWritable.... we make GetPropertyName calls multiple times during each set of standard operations. (i.e. adding a property to a JavascriptFunction)
|
Perf: Reduce GetPropertyName calls
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3650/comments
| 3 |
2017-09-06T17:00:29Z
|
2017-09-22T13:03:13Z
|
https://github.com/chakra-core/ChakraCore/issues/3650
| 255,675,286 | 3,650 |
[
"chakra-core",
"ChakraCore"
] |
`new Date(""2017-09-06T05:30:01.735"").toLocaleString();`
result in the Edge 20: "β2017βεΉ΄β9βζβ6βζ₯β β5β:β30β:β01" for JP local - incorrect
result in the Google Chrome 55 + IE 11: "β2017/9/5 21:30:01" for JP local - correct
|
Incorrect result as UTC+0000 for Date#toLocaleString
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3649/comments
| 3 |
2017-09-06T08:30:46Z
|
2017-09-06T18:02:49Z
|
https://github.com/chakra-core/ChakraCore/issues/3649
| 255,521,938 | 3,649 |
[
"chakra-core",
"ChakraCore"
] |
Subtask of #2919
|
Intl-ICU: implement Intl.*.supportedLocalesOf
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3648/comments
| 0 |
2017-09-06T07:59:47Z
|
2017-09-13T23:00:54Z
|
https://github.com/chakra-core/ChakraCore/issues/3648
| 255,514,142 | 3,648 |
[
"chakra-core",
"ChakraCore"
] |
The cause or partial cause of many of these issues may be WinGlob. Waiting on completion of #2919 (implement Intl with ICU) to get a better handle on the symptoms and causes.
Determine whether issues are intrinsic to the external library (WinGlob) or whether can be fixed (legitimately or by workaround) in ChakraCore directly.
See related linked-back issues below (also, I closed these issues to keep issue tracker tidy).
* DateTime
* [ ] #599 Intl: new Date().toLocaleString('de') puts unicode (BiDi) markers around punctuation
* [ ] #1408 Intl.DateTimeFormat incorrect formatting of date
* [ ] #3096 Intl: Date.toLocaleString doesn't handle 'timeZoneName' option correctly
* [ ] #3579 Intl: Date.toLocaleString on date/year with >10000 returns an error "Invalid procedure call or argument"
* Time
* [ ] #1223 Intl.DateTimeFormat doesn't format minutes and seconds properly in IE 11 and Edge
* [ ] #2915 Intl: Poor format template choice when specifying hour12 and minute with DateTimeFormatter
* [ ] #2916 Incorrect time reported by Date#toLocaleString
* Currency:
* [ ] #2778 Intl.NumberFormat currency symbols are inaccurate when dealing with different types of dollars/$
* NumberFormat:
* [ ] #3595 Intl: Number.tolocalestring output difference among platforms.
* [ ] #3691 Intl NumberFormat bug for floating point number rounding behavior
* Collation:
* [ ] #2604 "Intl.Collator('generic') fails" (i.e. locale "generic" not supported)
* [ ] #3175 Intl: Tibetan / Dzongkha collation not working
* [ ] #4060 "localeCompare doesn't take into account minus signs" (Collation behavior is different between WinGlob and ICU)
|
[Meta-issue] Intl operations returning incompatible results on Windows: investigate whether causes are strictly External
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3644/comments
| 3 |
2017-09-05T23:47:03Z
|
2019-06-07T18:38:03Z
|
https://github.com/chakra-core/ChakraCore/issues/3644
| 255,440,106 | 3,644 |
[
"chakra-core",
"ChakraCore"
] |
A very simple fix, file: RuntimeThreadData.cpp should include "CommonPal.h" to pickup on the THREAD_LOCAL macro.
|
Compile Error with Visual Studio 2017
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3641/comments
| 11 |
2017-09-05T19:05:59Z
|
2018-05-31T00:31:58Z
|
https://github.com/chakra-core/ChakraCore/issues/3641
| 255,377,264 | 3,641 |
[
"chakra-core",
"ChakraCore"
] |
It is possible right now to call `JsParse()` or `JsRun()` using the flag `JsParseScriptAttributeLibraryCode` to designate the script as library code and make it invisible to the debugger. It doesn't appear to be possible to do the same for ES modules.
Can this be done?
|
Designating a module as library code
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3640/comments
| 6 |
2017-09-05T17:07:10Z
|
2017-09-06T02:16:20Z
|
https://github.com/chakra-core/ChakraCore/issues/3640
| 255,346,582 | 3,640 |
[
"chakra-core",
"ChakraCore"
] |
I tried using a debug build of ChakraCore to try to diagnose some crashes I've been seeing and found out that ChakraCore fails an assert during module parsing. Upon calling `JsParseModuleSource()` for the first child module (the root module parses without issue), I get an assert failure here:
https://github.com/Microsoft/ChakraCore/blob/v1.7.1/lib/Runtime/Language/SourceTextModuleRecord.cpp#L698
|
Assert failure while parsing child module
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3638/comments
| 18 |
2017-09-04T14:14:57Z
|
2018-01-30T22:30:53Z
|
https://github.com/chakra-core/ChakraCore/issues/3638
| 255,054,632 | 3,638 |
[
"chakra-core",
"ChakraCore"
] |
Hi Team,
We have embedded chakracore in C# WPF application. and We wanted to debug the javascript using any tool. Please help us.
Thanks,
|
Debug Javascript using visual studio.
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3637/comments
| 2 |
2017-09-04T09:13:55Z
|
2017-09-07T05:59:03Z
|
https://github.com/chakra-core/ChakraCore/issues/3637
| 254,980,961 | 3,637 |
[
"chakra-core",
"ChakraCore"
] |
Is there any centralized place where I can find documentation for the JSON-based debug API? Some of the JSON is documented in ChakraDebug.h but not all--for example there's no documentation for the JSON object that gets passed to the event callback.
|
Debugger API documentation
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3636/comments
| 13 |
2017-09-03T22:59:19Z
|
2019-06-07T18:33:16Z
|
https://github.com/chakra-core/ChakraCore/issues/3636
| 254,906,436 | 3,636 |
[
"chakra-core",
"ChakraCore"
] |
I was trying to build and run ChakraCore on Windows Subsystem for Linux. The code is from the master branch (2349c5f), built with `./build.sh --debug`. It's built successfully, but when I run `./ch <any js file>`, it immediately aborts with an error "Out of Memory". The call stack shows the problem is in function [X64WriteBarrierCardTableManager::Initialize()](https://github.com/Microsoft/ChakraCore/blob/9f18426ef556fef9273ee55e2b6b5c8e7f57d3be/lib/Common/Memory/RecyclerWriteBarrierManager.cpp#L241) in RecyclerWriteBarrierManager.cpp. At [line 279](https://github.com/Microsoft/ChakraCore/blob/9f18426ef556fef9273ee55e2b6b5c8e7f57d3be/lib/Common/Memory/RecyclerWriteBarrierManager.cpp#L279), `VirtualAlloc` returns nullptr, causing the process to print "Out of Memory" and abort.
My OS is Windows 10 Pro x64 Build 15063. The Linux distribution is Ubuntu 16.04.3 LTS.
|
Out of memory error when running ch in WSL
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3631/comments
| 2 |
2017-09-01T20:30:28Z
|
2017-09-01T22:45:48Z
|
https://github.com/chakra-core/ChakraCore/issues/3631
| 254,744,371 | 3,631 |
[
"chakra-core",
"ChakraCore"
] |
If you run in the console the following command, you will get an incorrect result in Edge.
```javascript
Number("11275408829374972000")
```
The expected result is
```javascript
11275408829374972000
```
But Chakra's out is
```javascript
11275408829374971000
```
On the left side, Chrome console output, right side, Edge's.

Please advise.
Ref: https://github.com/gatsbyjs/gatsby/issues/1704
|
Number() casting precision bug
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3630/comments
| 2 |
2017-09-01T17:30:09Z
|
2017-09-07T22:45:29Z
|
https://github.com/chakra-core/ChakraCore/issues/3630
| 254,704,941 | 3,630 |
[
"chakra-core",
"ChakraCore"
] |
There was a discussion going on in https://github.com/webpack/webpack/issues/5600 that wraps all references into `Object ()` which was slow. v8 recently fixed it and I piggy-backed the test case from [here](http://benediktmeurer.de/2017/08/31/object-constructor-calls-in-webpack-bundles/) that was used to demonstrate v8's behavior and verified for `chakracore` and the results are similar. We are slow too and will be good to optimize to get boost in `webpack` module.
```js
const identity = x => x;
function callDirect(o) {
const foo = o.foo;
return foo(1, 2, 3);
}
function callViaCall(o) {
return o.foo.call(undefined, 1, 2, 3);
}
function callViaObject(o) {
return Object(o.foo)(1, 2, 3);
}
function callViaIdentity(o) {
return identity(o.foo)(1, 2, 3);
}
var TESTS = [
callDirect,
callViaObject,
callViaCall,
callViaIdentity
];
class A { foo(x, y, z) { return x + y + z; } };
var o = new A;
var n = 1e8;
function test(fn) {
var result;
for (var i = 0; i < n; ++i) result = fn(o);
return result;
}
// Warmup.
for (var j = 0; j < TESTS.length; ++j) {
test(TESTS[j]);
}
// Measure.
for (var j = 0; j < TESTS.length; ++j) {
var startTime = Date.now();
test(TESTS[j]);
console.log(TESTS[j].name + ':', (Date.now() - startTime), 'ms.');
}
```
Results :
```cmd
E:\git\Chakra\core>node f:\temp\object.js
callDirect: 664 ms.
callViaObject: 1906 ms.
callViaCall: 329 ms.
callViaIdentity: 454 ms.
E:\git\Chakra\core>node -pe "process.versions"
{ http_parser: '2.7.0',
node: '8.4.0',
chakracore: '1.7.1.0',
uv: '1.13.1',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
nghttp2: '1.22.0',
openssl: '1.0.2l',
icu: '59.1',
unicode: '9.0',
cldr: '31.0.1',
tz: '2017b' }
```
|
Object constructor calls are slow
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3629/comments
| 4 |
2017-09-01T17:13:43Z
|
2018-05-07T23:30:09Z
|
https://github.com/chakra-core/ChakraCore/issues/3629
| 254,701,427 | 3,629 |
[
"chakra-core",
"ChakraCore"
] |
I was looking through the debugging API and couldn't find a function to trigger an immediate break. My next thought was to use `JsDiagEvaluate()` to inject a `debugger` statement, but it can only be used while already at a breakpoint.
|
API to trigger immediate breakpoint?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3628/comments
| 7 |
2017-09-01T14:53:30Z
|
2017-11-30T23:39:25Z
|
https://github.com/chakra-core/ChakraCore/issues/3628
| 254,665,470 | 3,628 |
[
"chakra-core",
"ChakraCore"
] |
Hello, on Oct 15, 2017 in Brasilia a daylight saving hour is applied.
**GIVEN**: the Maschine is set to UTC-3 Brasilian timezone
**WHEN** executing Javascript:
`new Date ("Oct 15, 2017 12:00:00 AM").toString()`
**THEN**: IE11 is falsely returning:
`"Sat Oct 14 23:00:00 UTC-0300 2017"`
**EXPECTED** is:
`"Sun Oct 15 00:00:00 UTC-0300 2017"` or
`"Sun Oct 15 00:00:00 UTC-0200 2017"` depending on who you ask ;)
Same problem applies to
`new Date ("Oct 15, 2017 12:00:00 AM").toDateString()` => `"Sat Oct 14 2017"`
Root cause seems to be that in Brasilia the daylight saving hour is at 12am.
Therefore, 12am - 1 hour is 11pm on the day before.
This probably can be applied to all time zones with the day light saving hour at 12am.
Please fix asap.
Thanks and best regards,
Stefan
|
Date shift on daylight saving in Brasilia UTC-3 with date.toString()
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3627/comments
| 3 |
2017-09-01T11:34:56Z
|
2019-06-07T18:38:08Z
|
https://github.com/chakra-core/ChakraCore/issues/3627
| 254,614,551 | 3,627 |
[
"chakra-core",
"ChakraCore"
] |
Currently to create a property ID from a string passed in from JS, I have to do:
```c
JsCopyString(key_ref, key_string, ...);
JsCreatePropertyId(key_string, key_length, &prop_id);
```
`JsGetPropertyIdFromSymbol()` takes a JsValueRef as argument, but that only works for symbols.
|
API to make a PropertyId directly from a JavaScript string
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3623/comments
| 12 |
2017-08-31T23:31:09Z
|
2017-09-24T16:01:20Z
|
https://github.com/chakra-core/ChakraCore/issues/3623
| 254,496,808 | 3,623 |
[
"chakra-core",
"ChakraCore"
] |
`JsStringToPointer` gets a pointer to a UTF-16 encoded string. The pointer is specified in the function signature as `wchar_t*`, however `sizeof(wchar_t)` is 4 bytes on Unix platforms (Linux, macOS), in contrast to Windows where it's 2 bytes; this caused a segmentation fault on my end when I tried to walk the string through a `wchar_t` pointer.
If the function returns UTF-16 on all platforms, the signature should be changed to `uint16_t*` to prevent mishaps.
|
JsStringToPointer() returns wchar_t but always encodes as UTF-16
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3622/comments
| 6 |
2017-08-31T21:20:43Z
|
2017-08-31T23:17:50Z
|
https://github.com/chakra-core/ChakraCore/issues/3622
| 254,471,598 | 3,622 |
[
"chakra-core",
"ChakraCore"
] |
A runtime error in an ES module produces a stack trace like:
```
ReferenceError: 'getEaten' is not defined
at Showcase.prototype.on_update (:49:3)
at Anonymous function (#/game_modules/thread.js:134:26)
at Anonymous function (#/game_modules/thread.js:195:3)
at next (#/runtime/from.js:267:4)
at nullOp (#/runtime/from.js:706:9)
at Anonymous function (#/runtime/from.js:101:3)
at _updateAll (#/game_modules/thread.js:187:2)
```
The frames above that have filename information were in scripts loaded using `require()`. ES module frames like the top one `Showcase.prototype.on_update` do not.
|
No filename information for errors in ES modules
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3618/comments
| 10 |
2017-08-30T14:29:10Z
|
2018-01-11T16:33:56Z
|
https://github.com/chakra-core/ChakraCore/issues/3618
| 254,020,335 | 3,618 |
[
"chakra-core",
"ChakraCore"
] |
The following module parses successfully:
```js
import { from } from 'cell-runtime';
Object.assign(Sphere.Game,
{
name: "kh2Bar Showcase",
author: "Fat Cerberus",
resolution: '320x240',
main: '@/bin/main.mjs',
});
install('@/bin', files('src/*.mjs', true));
install('@/images', files('images/*.png', true));
install('@/sounds', files('sounds/*.wav', true));
```
However, if I remove or comment out the line:
```js
import { from } from 'cell-runtime';
```
Loading this as a root module now produces a SyntaxError with no message (note: error reporting for module parsing clearly needs work).
There seems to be no such requirement for child modules -- they can have no imports at all and parse just fine. But the root module seems to be required to have at least one import. Is this a bug?
|
Top-level module with no imports produces SyntaxError
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3617/comments
| 13 |
2017-08-30T06:41:32Z
|
2017-10-02T14:34:57Z
|
https://github.com/chakra-core/ChakraCore/issues/3617
| 253,893,750 | 3,617 |
[
"chakra-core",
"ChakraCore"
] |
There doesn't seem to be a way to get at the exports of a module in native code. I'm trying to implement a system where my engine calls an `export default` function in the root module, but I haven't found a way of accessing the exports. `JsModuleEvaluation(moduleRecord, &result);` usually just returns `undefined` for the result.
|
Get at module export table in native code
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3616/comments
| 23 |
2017-08-30T04:35:33Z
|
2018-02-20T22:21:46Z
|
https://github.com/chakra-core/ChakraCore/issues/3616
| 253,875,841 | 3,616 |
[
"chakra-core",
"ChakraCore"
] |
Object qualifiers are linked, and iterated upon in ECMA. Object key order should never change even when key iterating code is idempotent sense the most efficient code design can only be written knowing the iteration ahead of time.
Currently, in other ecma implementations, Object keys are/can be reordered dependent on if it is numerical. Index value re-ordering is one of those annoying functionalities in C/C++ that javascript should be blanketing. The ecma specification needs to change as well. I would be thrilled to see this happen with chakra.
Sharpen your swords here -->
[The debate](https://stackoverflow.com/questions/3186770/chrome-re-ordering-object-keys-if-numerics-is-that-normal-expected)
|
Object keys should not reorder if they are numerical.
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3614/comments
| 4 |
2017-08-30T01:03:34Z
|
2017-09-24T19:20:53Z
|
https://github.com/chakra-core/ChakraCore/issues/3614
| 253,847,984 | 3,614 |
[
"chakra-core",
"ChakraCore"
] |
After I updated Visual Studio 2017 to version 15.3.3 today, it can't build ChakraCore (master branch, x86 release version). The error is: **fatal error C1001: An internal error has occurred in the compiler.** and **LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage**. The x86 debug and x64 release versions can be built successfully. I am using Visual Studio 2017 Community Edition on Windows 10 x64 Build 15063. Does anyone else notice the same problem? Is there any workaround?
Here is the log:
```
15> Creating library C:\Users\***\git\ChakraCore\Build\VcBuild\bin\x86_release\ChakraCore.lib and object C:\Users\***\git\ChakraCore\Build\VcBuild\bin\x86_release\ChakraCore.exp
15>Generating code
15>c:\users\***\git\chakracore\lib\backend\serverscriptcontext.cpp : fatal error C1001: An internal error has occurred in the compiler.
15>(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 256)
15> To work around this problem, try simplifying or changing the program near the locations listed above.
15>Please choose the Technical Support command on the Visual C++
15> Help menu, or open the Technical Support help file for more information
15> link!InvokeCompilerPass()+0x1f81f
15> link!InvokeCompilerPass()+0x1f81f
15> link!InvokeCompilerPass()+0x26d8c
15> link!InvokeCompilerPass()+0x2722d
15> link!DllGetC2Telemetry()+0xf4a80
15> link!CloseTypeServerPDB()+0x53a92
15> link!CloseTypeServerPDB()+0x5adbf
15> link!CloseTypeServerPDB()+0x5ab47
15>
15>c:\users\***\git\chakracore\lib\backend\serverscriptcontext.cpp : fatal error C1001: An internal error has occurred in the compiler.
15>(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 256)
15> To work around this problem, try simplifying or changing the program near the locations listed above.
15>Please choose the Technical Support command on the Visual C++
15> Help menu, or open the Technical Support help file for more information
15> link!InvokeCompilerPass()+0x1f81f
15> link!InvokeCompilerPass()+0x26d8c
15> link!InvokeCompilerPass()+0x2722d
15> link!DllGetC2Telemetry()+0xf4a80
15> link!CloseTypeServerPDB()+0x53a92
15> link!CloseTypeServerPDB()+0x5adbf
15> link!CloseTypeServerPDB()+0x5ab47
15>
15>
15>LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage
15>
15> Version 14.11.25507.1
15>
15> ExceptionCode = C0000005
15> ExceptionFlags = 00000000
15> ExceptionAddress = 50DBE9AB (509D0000) "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\c2.dll"
15> NumberParameters = 00000002
15> ExceptionInformation[ 0] = 00000000
15> ExceptionInformation[ 1] = 00000001
15>
15>CONTEXT:
15> Eax = 00000000 Esp = 0075E5EC
15> Ebx = 34E34DB8 Ebp = 0075E5F8
15> Ecx = 34E35AFC Esi = 00000005
15> Edx = 00000002 Edi = 1A8F4474
15> Eip = 50DBE9AB EFlags = 00010246
15> SegCs = 00000023 SegDs = 0000002B
15> SegSs = 0000002B SegEs = 0000002B
15> SegFs = 00000053 SegGs = 0000002B
15> Dr0 = 00000000 Dr3 = 00000000
15> Dr1 = 00000000 Dr6 = 00000000
15> Dr2 = 00000000 Dr7 = 00000000
15>Done building project "ChakraCore.vcxproj" -- FAILED.
========== Build: 14 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========
```
|
VS2017 internal error occurred when building ChakraCore
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3612/comments
| 6 |
2017-08-29T23:08:17Z
|
2018-05-31T00:31:58Z
|
https://github.com/chakra-core/ChakraCore/issues/3612
| 253,831,477 | 3,612 |
[
"chakra-core",
"ChakraCore"
] |
This is a PoC code.
```
var p = new Proxy([], {});
class MyArray extends Array {
static get [Symbol.species]() {
return function() { return p; }
};
}
size = 0xffffffff;
w = new MyArray(size);
x = Array.prototype.concat.call(w);
|
Null pointer dereference when Array.prototype.concat.call
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3603/comments
| 2 |
2017-08-29T08:42:36Z
|
2017-09-08T21:46:29Z
|
https://github.com/chakra-core/ChakraCore/issues/3603
| 253,572,371 | 3,603 |
[
"chakra-core",
"ChakraCore"
] |
I'm getting spurious syntax errors for completely legal code which prevents me from testing ES6 modules. I even get a syntax error for a zero-length script(!)
Am I doing something wrong? My module evaluation function looks like this:
```c
void
jsal_eval_module(const char* filename)
{
/* [ ... source ] -> [ .. exports ] */
JsErrorCode error_code;
JsValueRef exception;
JsModuleRecord module;
JsValueRef result;
JsValueRef source;
size_t source_len;
const wchar_t* source_ptr;
JsValueRef url_string;
source = pop_value();
JsStringToPointer(source, &source_ptr, &source_len);
JsCreateString(filename, strlen(filename), &url_string);
JsInitializeModuleRecord(NULL, url_string, &module);
error_code = JsParseModuleSource(module, JS_SOURCE_CONTEXT_NONE, (BYTE*)source_ptr, (unsigned int)source_len,
JsParseModuleSourceFlags_DataIsUTF16LE, &exception);
if (error_code = JsErrorScriptCompile)
throw_value(exception);
JsModuleEvaluation(module, &result);
throw_if_error();
push_value(result);
}
```
|
JsParseModuleSource() gives weird syntax errors
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3602/comments
| 12 |
2017-08-29T06:18:22Z
|
2017-08-31T13:09:52Z
|
https://github.com/chakra-core/ChakraCore/issues/3602
| 253,540,447 | 3,602 |
[
"chakra-core",
"ChakraCore"
] |
I would like all my native finalizers to run on shutdown, to free any non-memory resources they may be holding onto. However my finalizers rely on being able to call back into JSRT to get the external data pointer from the object being finalized, and this fails with JsErrorNoCurrentContext as I've already set the context to JS_INVALID_REFERENCE.
This is a catch-22: `JsDisposeRuntime()` will fail and not run finalizers if I don't clear the current context first, however clearing the current context prevents the finalizers from accessing the external data pointer.
Is there a way to force immediate finalization of all objects?
|
Finalizers on shutdown catch-22
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3601/comments
| 2 |
2017-08-29T05:05:59Z
|
2017-08-29T23:04:23Z
|
https://github.com/chakra-core/ChakraCore/issues/3601
| 253,530,475 | 3,601 |
[
"chakra-core",
"ChakraCore"
] |
function foo(a = (() => b)(), b) {
}
foo();
Should throw use before declaration error.
|
Use of formals defined to the right should throw use before declaration error
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3600/comments
| 1 |
2017-08-29T04:07:09Z
|
2019-06-07T18:34:15Z
|
https://github.com/chakra-core/ChakraCore/issues/3600
| 253,523,690 | 3,600 |
[
"chakra-core",
"ChakraCore"
] |
In JavaScript, it's legal to do:
```js
var num = 812;
console.log(num.foo); // undefined
console.log(num.toString()); // 812
```
This works because numbers are object coercible even though they are not real objects. However, doing equivalent property reads with `JsGetProperty()` will return `JsErrorArgumentNotObject` without modifying the ref pointer passed in. This actually caused a segfault for me because I assumed GetProperty would work for all object-coercibles but it turns out it doesn't.
Could this behavior be changed?
|
JsGetProperty() doesn't work with object-coercibles
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3599/comments
| 4 |
2017-08-28T23:42:13Z
|
2017-09-04T02:41:44Z
|
https://github.com/chakra-core/ChakraCore/issues/3599
| 253,487,519 | 3,599 |
[
"chakra-core",
"ChakraCore"
] |
```
14:52:07 4>Summary: wasm had 39 tests; 3 failures
14:52:45 interpreted\rl.results.log:wasm (limits.js ( -wasm -args --no-verbose --start 4 --end 12 -endargs) exe) -- failed : exec time=4
14:52:45 interpreted\rl.results.log:wasm (limits.js ( -wasm -args --no-verbose --end 4 -endargs) exe) -- failed : exec time=7
14:52:45 interpreted\rl.results.log:wasm (limits.js ( -wasm -args --no-verbose --start 12 -endargs) exe) -- failed : exec time=54
```
Changes resulting in first occurrence of failure:
https://ci2.dot.net/job/Microsoft_ChakraCore/job/release_1.7/job/daily_slow_x64_test/37/changes
Started failing on 8/21
|
[1.7] daily_slow_x64_test failures in WASM tests
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3597/comments
| 1 |
2017-08-28T18:03:20Z
|
2017-08-28T20:56:49Z
|
https://github.com/chakra-core/ChakraCore/issues/3597
| 253,407,944 | 3,597 |
[
"chakra-core",
"ChakraCore"
] |
```
999.9996.toLocaleString().
*nix: 1,000
Windows: 1,000.00
```
- Investigate the difference (per sample and other potential FP numbers)
|
Intl: Number.tolocalestring output difference among platforms.
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3595/comments
| 7 |
2017-08-28T16:45:12Z
|
2018-01-27T01:30:25Z
|
https://github.com/chakra-core/ChakraCore/issues/3595
| 253,387,666 | 3,595 |
[
"chakra-core",
"ChakraCore"
] |
I ask because I have [an Open-Source project](http://camotics.org/) that has a significant, although niche, following. I've built [a library that makes it easy to use both libv8 and ChakraCore](https://github.com/CauldronDevelopmentLLC/cbang/tree/master/src/cbang/js). However, I cannot get ChakraCore to link properly on Windows 10 so I've had to abandoned ChakraCore support. We are using JavaScript for producing tool paths for CNC machines and as you know desktop manufacturing is a big deal these days.
If Microsoft is expanding support for Open-Source then I think CAMotics would be a good fit. Does Microsoft contribute to Open-Source? Would it be possible to get some help maintaining the Windows port of CAMotics?
CC: @obastemur, @jianchun, @dilijev
|
Does Microsoft contribute to external Open-Source projects?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3593/comments
| 7 |
2017-08-27T09:33:34Z
|
2017-08-31T16:45:09Z
|
https://github.com/chakra-core/ChakraCore/issues/3593
| 253,152,624 | 3,593 |
[
"chakra-core",
"ChakraCore"
] |
It's possible right now to create an "External Object" which stores a C pointer to internal native data. However, what's *not* possible as far as I can see is being able to store arbitrary properties on an object which refer to JS values but aren't accessible from JS. For example in Duktape it's possible to:
```c
duk_push_object(ctx);
/* populate new object with anything needed */
duk_put_prop_string(ctx, -2, "\xff""hiddenObject");
```
That can be done with any object, whereas in Chakra you currently have to create an external object to store private data--and it's not possible to convert an existing standard JS object to an external one, either, which means that in native constructors for external objects, you can't use the automatic `this` and must instead return a fresh object from the constructor.
I propose an API that would either:
* Add an API that converts an existing standard JS object to an External object, **OR**:
* Add an API for storing "hidden" properties that could be accessed using `Js[GS]etProperty()` but not within JavaScript code. Perhaps something like `JsCreateHiddenPropertyId()`.
|
Add API to store private properties in any object
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3592/comments
| 2 |
2017-08-26T14:04:18Z
|
2017-10-16T09:07:02Z
|
https://github.com/chakra-core/ChakraCore/issues/3592
| 253,095,021 | 3,592 |
[
"chakra-core",
"ChakraCore"
] |
I had an issue with invalid exceptions getting thrown, so I ran some tests in the debugger. It seems that in certain cases:
* `JsGetAndClearException()` returns `JsNoError`.
* Before calling, JsValueRef value is `0xcccccccc` (uninitialized stack variable)
* After calling, JsValueRef is `0xcdcdcdcd`, indicating freed memory!
ChakraCore version is 1.7.1.
|
JsGetAndClearException() returns bad pointer
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3589/comments
| 1 |
2017-08-25T23:29:55Z
|
2017-08-26T01:21:51Z
|
https://github.com/chakra-core/ChakraCore/issues/3589
| 253,040,319 | 3,589 |
[
"chakra-core",
"ChakraCore"
] |
Repro:
var a = new Date(10000,5,1)
a.toLocaleString()
Observed:
Invalid procedure call or argument
Works in chrome; errors out in Edge/IE11.
|
Intl: Date.toLocaleString on date/year with >10000 returns an error "Invalid procedure call or argument"
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3579/comments
| 11 |
2017-08-24T05:21:48Z
|
2017-11-08T00:45:51Z
|
https://github.com/chakra-core/ChakraCore/issues/3579
| 252,490,073 | 3,579 |
[
"chakra-core",
"ChakraCore"
] |
I'm trying to create a native object and set its `[Symbol.iterator]` so that the object can be enumerated using `for...of`, but all I can find in the API is `JsCreateSymbol()` which creates a new, unique symbol.
|
How to access well-known symbols from C?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3575/comments
| 12 |
2017-08-23T06:00:34Z
|
2018-02-13T23:54:57Z
|
https://github.com/chakra-core/ChakraCore/issues/3575
| 252,168,682 | 3,575 |
[
"chakra-core",
"ChakraCore"
] |
chakracore
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3572/comments
| 0 |
2017-08-23T02:14:53Z
|
2017-08-23T10:01:57Z
|
https://github.com/chakra-core/ChakraCore/issues/3572
| 252,139,744 | 3,572 |
|
[
"chakra-core",
"ChakraCore"
] |
It would be tremendously convenient if there were a JSRT API that could compare the magnitude of two JsValueRef's, as per the the ecmascript [abstract relational comparison algorithm](https://tc39.github.io/ecma262/#sec-abstract-relational-comparison).
|
JSRT API to access javascript relational comparison function
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3568/comments
| 6 |
2017-08-22T16:54:47Z
|
2017-10-18T23:16:52Z
|
https://github.com/chakra-core/ChakraCore/issues/3568
| 252,023,369 | 3,568 |
[
"chakra-core",
"ChakraCore"
] |
Hi all, i'm unable to build ChakraCore on Ubuntu 16.04.3 64bit due to this error. Any solution?
[100%] Linking CXX shared library libChakraCore.so
clang: error: unable to execute command: Killed
clang: error: linker command failed due to signal (use -v to see invocation)
bin/ChakraCore/CMakeFiles/ChakraCore.dir/build.make:147: recipe for target 'bin/ChakraCore/libChakraCore.so' failed
make[2]: *** [bin/ChakraCore/libChakraCore.so] Error 254
CMakeFiles/Makefile2:1790: recipe for target 'bin/ChakraCore/CMakeFiles/ChakraCore.dir/all' failed
make[1]: *** [bin/ChakraCore/CMakeFiles/ChakraCore.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
See error details above. Exit code was 2
|
clang: error: unable to execute command: Killed
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3567/comments
| 2 |
2017-08-22T09:35:05Z
|
2017-08-22T14:10:02Z
|
https://github.com/chakra-core/ChakraCore/issues/3567
| 251,895,761 | 3,567 |
[
"chakra-core",
"ChakraCore"
] |
```
test/es6/rlexe.xml:1291: <tags>BugFix,exclude_</tags>
```
Context:
```
test/es6/rlexe.xml-1288- <test>
test/es6/rlexe.xml-1289- <default>
test/es6/rlexe.xml-1290- <files>OS_5403724.js</files>
test/es6/rlexe.xml:1291: <tags>BugFix,exclude_</tags>
test/es6/rlexe.xml-1292- <compile-flags>-maxinterpretcount:3 -off:simpleJit -ES6 -args summary -endargs</compile-flags>
test/es6/rlexe.xml-1293- <tags>exclude_dynapogo</tags>
test/es6/rlexe.xml-1294- </default>
```
|
test/es6/rlexe.xml: Broken "exclude_" tag
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3563/comments
| 0 |
2017-08-22T00:28:24Z
|
2018-05-31T00:31:57Z
|
https://github.com/chakra-core/ChakraCore/issues/3563
| 251,805,240 | 3,563 |
[
"chakra-core",
"ChakraCore"
] |
- [x] Remove `exclude_xplat` tag from test folder `WasmSpec` and from individual tests in test folder `wasm`
- [x] Fix failing tests
- [x] Enable WebAssembly in release builds (remove `#if defined(_WIN32) || (defined(__clang__) && defined(ENABLE_DEBUG_CONFIG_OPTIONS))` in CommonDefines.h
|
Enable WebAssembly on xplat
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3561/comments
| 4 |
2017-08-21T19:36:46Z
|
2018-02-21T00:31:37Z
|
https://github.com/chakra-core/ChakraCore/issues/3561
| 251,750,216 | 3,561 |
[
"chakra-core",
"ChakraCore"
] |
Not sure if this is the right place for this bug but was testing a client/api on Edge 16.16257 and noticed that when getting the headers from the ajax response using `request.getAllResponseHeaders();` would not return any custom headers.
Was working ok in previous versions.
[Example](http://www.test-cors.org/#?client_method=GET&client_credentials=true&client_headers=x-auth%3A%20test&server_enable=true&server_status=200&server_credentials=true&server_methods=get&server_headers=x-auth&server_expose_headers=x-auth&server_response_headers=x-auth%3A%20test&server_tabs=local)
Viewing the link in Chrome Version 60.0.3112.101 once you click 'Send request' button in the results can see the custom `x-auth` header.
```
XHR exposed response headers:
content-type: application/json
cache-control: no-cache
x-auth: test
expires: Mon, 21 Aug 2017 11:33:52 GMT
```
but when running the same example on Edge 16.16257 get the following result:
```
XHR exposed response headers:
Cache-Control: no-cache
Content-Type: application/json
Expires: Mon, 21 Aug 2017 11:23:30 GMT
```
Microsoft EdgeHTML 15.15063
```
XHR exposed response headers:
Cache-Control: no-cache
Content-Type: application/json
Access-Control-Allow-Origin: http://www.test-cors.org
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: x-auth
x-auth: test
X-Cloud-Trace-Context: 3fdf25c83c5e5aaa84e8fe49da94d6eb
Date: Mon, 21 Aug 2017 11:49:02 GMT
Server: Google Frontend
Expires: Mon, 21 Aug 2017 11:49:02 GMT
Content-Length: 978
```
|
Missing headers in getResponseHeader Microsoft EdgeHTML 16.16257
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3559/comments
| 3 |
2017-08-21T11:50:18Z
|
2017-08-23T20:27:31Z
|
https://github.com/chakra-core/ChakraCore/issues/3559
| 251,635,079 | 3,559 |
[
"chakra-core",
"ChakraCore"
] |
Just checked out ChakraCore and attempted to build using MSVC 2017 per the directions in README:
> * Clone ChakraCore through git clone https://github.com/Microsoft/ChakraCore.git
> * Open Build\Chakra.Core.sln in Visual Studio
> * Build Solution
It seemed to build successfully:
```
========== Build: 29 succeeded, 0 failed, 0 up-to-date, 2 skipped ==========
```
However this error appeared in the Error List window:
> Error CMake Error at D:\src\ChakraCore\CMakeLists.txt:47 (message):
> Couldn't detect target processor, try `--arch` argument with build.sh
Not sure if I can safely ignore that or not.
|
CMake target processor error in MSVC 2017
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3558/comments
| 1 |
2017-08-20T17:09:31Z
|
2017-08-22T01:27:05Z
|
https://github.com/chakra-core/ChakraCore/issues/3558
| 251,501,400 | 3,558 |
[
"chakra-core",
"ChakraCore"
] |
After building ChakraCore on Linux, I found there is `ch` which looks like a shell environment (similar to `d8` in V8, `js` in SpiderMonkey, and `jsc` in WebKit). However for the tests I want to run, I need WebAssembly support (I'm running the [wasm fuzzer in binaryen](https://github.com/WebAssembly/binaryen/wiki/Fuzzing)), and that doesn't seem to be present in `ch`?
Also I couldn't find a way to get the arguments, i.e. if I run `ch file.js arg1 arg2` then it would be nice to be able to get `[arg1, arg2]` inside JS (but this is something that can be worked around).
|
WebAssembly in ch shell?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3552/comments
| 2 |
2017-08-19T03:08:35Z
|
2017-08-19T16:10:30Z
|
https://github.com/chakra-core/ChakraCore/issues/3552
| 251,396,281 | 3,552 |
[
"chakra-core",
"ChakraCore"
] |
In my spare time I have been chipping away at https://github.com/Microsoft/ChakraCore/issues/3494 . Whilst doing this I had a look at some of the existing code that is used to selectively use SSE greater than SSE2 instructions at runtime. For example https://github.com/Microsoft/ChakraCore/blob/6a222b7d049ad10b3dde81d5a97f29e7fba7fc00/lib/Backend/Encoder.cpp#L997
```
uint Encoder::CalculateCRC(uint bufferCRC, size_t data)
{
#if defined(_WIN32) || defined(__SSE4_2__)
#if defined(_M_IX86)
if (AutoSystemInfo::Data.SSE4_2Available())
{
return _mm_crc32_u32(bufferCRC, data);
}
#elif defined(_M_X64)
if (AutoSystemInfo::Data.SSE4_2Available())
{
//CRC32 always returns a 32-bit result
return (uint)_mm_crc32_u64(bufferCRC, data);
}
#endif
#endif
return CalculateCRC32(bufferCRC, data);
}
```
In order to generate a portable x86_64 binary I need to compile without ``-msse4.2``. Doing so will essentially turn this function in to this:
```
uint Encoder::CalculateCRC(uint bufferCRC, size_t data)
{
return CalculateCRC32(bufferCRC, data);
}
```
Note that this unconditionally disables use of the SSE4.2 crc32 instruction.
Unfortunately if ``-msse4.2`` is enabled then SSE4.2 instructions will be enabled globally throughout the codebase. This means that Clang is free to emit SSE4.2 code wherever it pleases (not just where you have used an intrinsic such as ``_mm_crc32_u32``). This means it will generate code that will not work correctly on processors that only have support for SSE2. I think this is an example of how Clang differs in behaviour to MSVC. I think MSVC will only emit SSE4.2 instructions specifically where you have used SSE4.2 intrinsics.
When the ``-msse4.2`` flag is enabled you will essentially compile the following:
```
uint Encoder::CalculateCRC(uint bufferCRC, size_t data)
{
if (AutoSystemInfo::Data.SSE4_2Available())
{
//CRC32 always returns a 32-bit result
return (uint)_mm_crc32_u64(bufferCRC, data);
}
return CalculateCRC32(bufferCRC, data);
}
```
But, if you substitute in that implementation for CalculateCRC and then compile without ``-msse4.2`` you will get the following error:
```
[ 30%] Building CXX object lib/Backend/CMakeFiles/Chakra.Backend.dir/Encoder.cpp.o
/root/src/ChakraCore-1.7.0/lib/Backend/Encoder.cpp:1033:14: error: always_inline function '_mm_crc32_u64' requires target feature 'ssse3', but would be inlined into function 'CalculateCRC' that is compiled without support for 'ssse3'
return (uint)_mm_crc32_u64(bufferCRC, data);
^
1 error generated.
make[2]: *** [lib/Backend/CMakeFiles/Chakra.Backend.dir/Encoder.cpp.o] Error 1
make[1]: *** [lib/Backend/CMakeFiles/Chakra.Backend.dir/all] Error 2
make: *** [all] Error 2
See error details above. Exit code was 2
```
Which means that you cannot use the intrinsic without the ``-msse4.2`` flag.
There are a couple of work arounds for this (eg putting the SSE4.2 code in a separate file and then compiling that code ``-msse4.2``). Using inline assembly is probably closest to what the intrinsic does. I've had a couple of tries at this, but I can't seem to get the right incantation. Eg, the following illustrates the idea, but is buggy (oddly it seems to work fine when compiling ``-O0`` but breaks when compiling ``-O3``, on Clang 3.8.0):
```
uint Encoder::CalculateCRC(uint bufferCRC, size_t data)
{
#if defined(_WIN32)
#if defined(_M_IX86)
if (AutoSystemInfo::Data.SSE4_2Available())
{
return _mm_crc32_u32(bufferCRC, data);
}
#elif defined(_M_X64)
if (AutoSystemInfo::Data.SSE4_2Available())
{
//CRC32 always returns a 32-bit result
return (uint)_mm_crc32_u64(bufferCRC, data);
}
#endif
#else
#if defined(_M_X64)
if (AutoSystemInfo::Data.SSE4_2Available())
{
unsigned long long tmp;
unsigned long long tmp2=0;
tmp=(unsigned long long)bufferCRC;
__asm__ __volatile__("push %1;crc32q %2, %1; movq %1, %0;pop %1" : "=r" (tmp2): "r" (tmp), "r" ((unsigned long long)data));
return (uint)tmp2;
}
#endif
#endif
return CalculateCRC32(bufferCRC, data);
}
```
|
xplat issues with detection and use of SSE instructions for SSE versions greater than SSE2
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3551/comments
| 2 |
2017-08-18T21:30:12Z
|
2017-08-19T00:22:10Z
|
https://github.com/chakra-core/ChakraCore/issues/3551
| 251,363,606 | 3,551 |
[
"chakra-core",
"ChakraCore"
] |
**Repro:**
1. Build ChakraCore on linux with the following options:
`./build.sh --cc=/usr/bin/clang --cxx=/usr/bin/clang++ --arch=amd64 --debug --static -j 8 --sanitize=address,undefined,signed-integer-overflow`
1. `cd test/native-tests`
1. run tests: `./test_native.sh <full-path-to-ch.exe> Debug`
**Expected:**
Tests to pass w/out error.
**Actual:**
Tests fail with the following:
```
mkaufman@mkaufman-ubuntu-3:~/ChakraCore/test/native-tests$ ./test_native.sh ~/ChakraCore/out/Debug/ch Debug
Testing test-c98
/home/mkaufman/ChakraCore/lib/Common/Codex/Utf8Codex.h:142:5: runtime error: load of value 4294967294, which is not a valid value for type 'utf8::DecodeOptions'
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Common/Codex/Utf8Codex.h:142:5 in
/home/mkaufman/ChakraCore/pal/src/cruntime/wchar.cpp:1248:46: runtime error: load of misaligned address 0x621000019e3a for type 'const size_t' (aka 'const unsigned long'), which requires 8 byte alignment
0x621000019e3a: note: pointer points here
ff ff 00 00 70 00 61 00 74 00 68 00 5f 00 73 00 65 00 70 00 00 00 bc bc bc bc bc bc be be be be
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/pal/src/cruntime/wchar.cpp:1248:46 in
/home/mkaufman/ChakraCore/pal/src/cruntime/wchar.cpp:1248:58: runtime error: load of misaligned address 0x62100001a0aa for type 'const size_t' (aka 'const unsigned long'), which requires 8 byte alignment
0x62100001a0aa: note: pointer points here
ff ff 00 00 70 00 6c 00 61 00 74 00 66 00 6f 00 72 00 6d 00 00 00 bc bc bc bc bc bc be be be be
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/pal/src/cruntime/wchar.cpp:1248:58 in
/home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:1786:88: runtime error: reference binding to misaligned address 0x7fffdff5d881 for type 'typename LayoutSizePolicy<SmallLayout>::PropertyIdIndexType' (aka 'unsigned short'), which requires 2 byte alignment
0x7fffdff5d881: note: pointer points here
7f 00 00 01 d8 f5 df ff 7f 00 00 b0 35 a6 88 26 56 00 00 06 62 cf 7c 87 c9 9b cd 06 62 cf 7c 87
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:1786:88 in
/home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:1145:96: runtime error: reference binding to misaligned address 0x7fffdff4b583 for type 'InlineCacheIndex' (aka 'unsigned int'), which requires 4 byte alignment
0x7fffdff4b583: note: pointer points here
04 02 ff 0d df ff 7f 00 00 78 a1 6b 6b 71 7f 00 00 d0 b7 f4 df ff ff ff ff 02 00 00 00 00 00 00
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:1145:96 in
/home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:102:48: runtime error: load of misaligned address 0x7f716b620037 for type 'short', which requires 2 byte alignment
0x7f716b620037: note: pointer points here
0e 0e 00 0f 03 00 0e 09 02 00 ab 0d 09 02 00 ac 0d 6b 00 00 00 00 0e 62 0e 0e 00 62 0e 0e 01 3d
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:102:48 in
/home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:118:13: runtime error: store to misaligned address 0x7f716b620037 for type 'short', which requires 2 byte alignment
0x7f716b620037: note: pointer points here
0e 0e 00 0f 03 00 0e 09 02 00 ab 0d 09 02 00 ac 0d 6b 00 00 00 00 0e 62 0e 0e 00 62 0e 0e 01 3d
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:118:13 in
/home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:170:13: runtime error: store to misaligned address 0x7f716b62017d for type 'uint' (aka 'unsigned int'), which requires 4 byte alignment
0x7f716b62017d: note: pointer points here
5c 00 07 6b 06 00 00 00 0e 5c 01 0e f2 02 ff 0d 00 00 00 00 03 00 24 00 00 00 00 00 00 00 00 00
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:170:13 in
/home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:179:13: runtime error: store to misaligned address 0x7f716b620189 for type 'uint' (aka 'unsigned int'), which requires 4 byte alignment
0x7f716b620189: note: pointer points here
f2 02 ff 0d 00 00 00 00 03 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:179:13 in
/home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:188:13: runtime error: store to misaligned address 0x7f716b62016b for type 'uint' (aka 'unsigned int'), which requires 4 byte alignment
0x7f716b62016b: note: pointer points here
0d 0c 06 73 05 00 00 00 0d 6f 0f 00 00 00 0d 07 02 00 5c 00 07 6b 0e 00 00 00 0e 5c 01 0e f2 02
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:188:13 in
/home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:124:9: runtime error: load of misaligned address 0x7f7168a2003d for type 'unsigned long', which requires 8 byte alignment
0x7f7168a2003d: note: pointer points here
24 10 48 b8 00 00 00 00 00 00 00 00 ff e2 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:124:9 in
/home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:125:9: runtime error: store to misaligned address 0x7f7168a2003d for type 'unsigned long', which requires 8 byte alignment
0x7f7168a2003d: note: pointer points here
24 10 48 b8 00 00 00 00 00 00 00 00 ff e2 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:125:9 in
/home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:124:9: runtime error: load of misaligned address 0x7f7168a20027 for type 'unsigned int', which requires 4 byte alignment
0x7f7168a20027: note: pointer points here
c1 48 81 f9 00 00 00 00 76 09 48 c7 c1 00 00 00 00 cd 29 48 8d 7c 24 10 48 b8 90 a9 1c 8a 26 56
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:124:9 in
/home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:125:9: runtime error: store to misaligned address 0x7f7168a20027 for type 'unsigned int', which requires 4 byte alignment
0x7f7168a20027: note: pointer points here
c1 48 81 f9 00 00 00 00 76 09 48 c7 c1 00 00 00 00 cd 29 48 8d 7c 24 10 48 b8 90 a9 1c 8a 26 56
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:125:9 in
/home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:124:9: runtime error: load of misaligned address 0x7f7168a2004b for type 'int', which requires 4 byte alignment
0x7f7168a2004b: note: pointer points here
cc ff d0 e9 00 00 00 00 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:124:9 in
/home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:125:9: runtime error: store to misaligned address 0x7f7168a2004b for type 'int', which requires 4 byte alignment
0x7f7168a2004b: note: pointer points here
cc ff d0 e9 00 00 00 00 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
^
SUMMARY: AddressSanitizer: undefined-behavior /home/mkaufman/ChakraCore/lib/Backend/InterpreterThunkEmitter.h:125:9 in
ASAN:DEADLYSIGNAL
=================================================================
==9779==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x56268794e5b2 bp 0x61c00000e080 sp 0x7fffdff618f0 T0)
#0 0x56268794e5b1 (/home/mkaufman/ChakraCore/out/Debug/ch+0xca7c5b1)
#1 0x56268794ce12 (/home/mkaufman/ChakraCore/out/Debug/ch+0xca7ae12)
#2 0x56268794d542 (/home/mkaufman/ChakraCore/out/Debug/ch+0xca7b542)
#3 0x562687ca5008 (/home/mkaufman/ChakraCore/out/Debug/ch+0xcdd3008)
#4 0x562687c9a39e (/home/mkaufman/ChakraCore/out/Debug/ch+0xcdc839e)
#5 0x562687c8e6db (/home/mkaufman/ChakraCore/out/Debug/ch+0xcdbc6db)
#6 0x562687be6ad4 (/home/mkaufman/ChakraCore/out/Debug/ch+0xcd14ad4)
#7 0x562687b9c244 (/home/mkaufman/ChakraCore/out/Debug/ch+0xccca244)
#8 0x562687bf5503 (/home/mkaufman/ChakraCore/out/Debug/ch+0xcd23503)
#9 0x562687b933f7 (/home/mkaufman/ChakraCore/out/Debug/ch+0xccc13f7)
#10 0x562687b934d4 (/home/mkaufman/ChakraCore/out/Debug/ch+0xccc14d4)
#11 0x56268dc6930c (/home/mkaufman/ChakraCore/out/Debug/ch+0x12d9730c)
#12 0x56268dc65e1a (/home/mkaufman/ChakraCore/out/Debug/ch+0x12d93e1a)
#13 0x56268dc653a1 (/home/mkaufman/ChakraCore/out/Debug/ch+0x12d933a1)
#14 0x562688dd6ce4 (/home/mkaufman/ChakraCore/out/Debug/ch+0xdf04ce4)
#15 0x562688dedec6 (/home/mkaufman/ChakraCore/out/Debug/ch+0xdf1bec6)
#16 0x562687dc03a4 (/home/mkaufman/ChakraCore/out/Debug/ch+0xceee3a4)
#17 0x562687dbebd9 (/home/mkaufman/ChakraCore/out/Debug/ch+0xceecbd9)
#18 0x562687dbe260 (/home/mkaufman/ChakraCore/out/Debug/ch+0xceec260)
#19 0x562687d6e51d (/home/mkaufman/ChakraCore/out/Debug/ch+0xce9c51d)
#20 0x562687d6e31d (/home/mkaufman/ChakraCore/out/Debug/ch+0xce9c31d)
#21 0x562687958ce0 (/home/mkaufman/ChakraCore/out/Debug/ch+0xca86ce0)
#22 0x562687955749 (/home/mkaufman/ChakraCore/out/Debug/ch+0xca83749)
#23 0x562687955837 (/home/mkaufman/ChakraCore/out/Debug/ch+0xca83837)
#24 0x56268795764e (/home/mkaufman/ChakraCore/out/Debug/ch+0xca8564e)
#25 0x7f716fa9882f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#26 0x56268787a3e8 (/home/mkaufman/ChakraCore/out/Debug/ch+0xc9a83e8)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/mkaufman/ChakraCore/out/Debug/ch+0xca7c5b1)
==9779==ABORTING
```
|
Errors running native-tests on linux when built with sanitize
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3543/comments
| 0 |
2017-08-17T18:39:53Z
|
2019-06-07T19:11:09Z
|
https://github.com/chakra-core/ChakraCore/issues/3543
| 251,034,821 | 3,543 |
[
"chakra-core",
"ChakraCore"
] |
Hello,
The following code behaves inconsistent with other engines.
```
var get_cnt = 0;
var int16 = new Int16Array(4);
class dummy {
constructor() {
print("in constructor");
return int16;
}
}
var handler = {
get: function(oTarget, sKey) {
print("get " + sKey.toString());
if (sKey.toString()=="constructor") {
return { [Symbol.species] : dummy };
} else if (Number(sKey.toString()) != NaN) {
get_cnt++;
return 0x10;
}
return Reflect.get(oTarget, sKey);
},
has: function (oTarget, sKey) {
print("has " + sKey.toString());
return Reflect.has(oTarget, sKey);
},
};
var words1 = ["abc", "aaaaaaa", "abcd", "aaaaabcd", "abcde", "aaaaabcdef"];
var words2 = ["abc", "aaaaaaa", "abcd", "aaaaabcd", "abcde", "aaaaabcdef"];
var p = new Proxy(words2, handler);
var longWords = words1.filter.call(p, function(word){
return true;
});
print(longWords);
```
Chakra 1.7-release result:
```
get length
get constructor
in constructor
has 0
get 0
has 1
get 1
has 2
get 2
has 3
get 3
has 4
get 4
has 5
get 5
has 6
has 7
has 8
has 9
has 10
has 11
has 12
has 13
has 14
has 15
16,16,16,16
```
spidermonkey result:
```
get length
get constructor
in constructor
has 0
get 0
int16Array.js:31:17 TypeError: can't redefine non-configurable property 0
```
v8 result:
```
get length
get constructor
in constructor
has 0
get 0
int16Array.js:31: TypeError: Cannot redefine property: 0
var longWords = words1.filter.call(p, function(word){
^
TypeError: Cannot redefine property: 0
at Proxy.filter (<anonymous>)
at int16Array.js:31:31
```
ICT BT group
2017.8.15
|
Realization of TypedArray's [[DefineOwnProperty]] is inconsistent with other engines
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3532/comments
| 3 |
2017-08-15T06:32:54Z
|
2019-06-07T18:35:30Z
|
https://github.com/chakra-core/ChakraCore/issues/3532
| 250,232,481 | 3,532 |
[
"chakra-core",
"ChakraCore"
] |
Hi,
We found an failed assertion in the ChakraCore interpreter (ch) when you run the following test case:
```
WScript = {}
WScript.Echo = console.log
$ERROR = console.log
assert = {}
assert.sameValue = function(x,y,z) {
return x == y
}
assert.notSameValue = function(x,y,z) {
return not (x == y)
}
assert.throws = function(x,f) {
f()
}
testOption = function(x) {}
assert.sameValue("\u00DF".toLocaleUpperCase(), "\u0053\u0053", "LATIN SMALL LETTER SHARP S");
assert.sameValue("\u0130".toLocaleUpperCase(), "\u0130", "LATIN CAPITAL LETTER I WITH DOT ABOVE");
assert.sameValue("\uFB00".toLocaleUpperCase(), "\u0046\u0046", "LATIN SMALL LIGATURE FF");
assert.sameValue("\uFB01".toLocaleUpperCase(), "\u0046\u0049", "LATIN SMALL LIGATURE FI");
assert.sameValue("\uFB02".toLocaleUpperCase(), "\u0046\u004C", "LATIN SMALL LIGATURE FL");
assert.sameValue("\uFB03".toLocaleUpperCase(), "\u0046\u0046\u0049", "LATIN SMALL LIGATURE FFI");
assert.sameValue("\uFB04".toLocaleUpperCase(), "\u0046\u0046\u004C", "LATIN SMALL LIGATURE FFL");
assert.sameValue("\uFB05".toLocaleUpperCase(), "\u0053\u0054", "LATIN SMALL LIGATURE LONG S T");
assert.sameValue("\uFB06".toLocaleUpperCase(), "\u0053\u0054", "LATIN SMALL LIGATURE ST");
assert.sameValue("\u0587".toLocaleUpperCase(), "\u0535\u0552", "ARMENIAN SMALL LIGATURE ECH YIWN");
assert.sameValue("\uFB13".toLocaleUpperCase(), "\u0544\u0546", "ARMENIAN SMALL LIGATURE MEN NOW");
assert.sameValue("\uFB14".toLocaleUpperCase(), "\u0544\u0535", "ARMENIAN SMALL LIGATURE MEN ECH");
assert.sameValue("\uFB15".toLocaleUpperCase(), "\u0544\u053B", "ARMENIAN SMALL LIGATURE MEN INI");
assert.sameValue("\uFB16".toLocaleUpperCase(), "\u054E\u0546", "ARMENIAN SMALL LIGATURE VEW NOW");
assert.sameValue("\uFB17".toLocaleUpperCase(), "\u0544\u053D", "ARMENIAN SMALL LIGATURE MEN XEH");
assert.sameValue("\u0149".toLocaleUpperCase(), "\u02BC\u004E", "LATIN SMALL LETTER N PRECEDED BY APOSTROPHE");
assert.sameValue("\u0390".toLocaleUpperCase(), "\u0399\u0308\u0301", "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS");
assert.sameValue("\u03B0".toLocaleUpperCase(), "\u03A5\u0308\u0301", "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS");
assert.sameValue("\u01F0".toLocaleUpperCase(), "\u004A\u030C", "LATIN SMALL LETTER J WITH CARON");
assert.sameValue("\u1E96".toLocaleUpperCase(), "\u0048\u0331", "LATIN SMALL LETTER H WITH LINE BELOW");
assert.sameValue("\u1E97".toLocaleUpperCase(), "\u0054\u0308", "LATIN SMALL LETTER T WITH DIAERESIS");
assert.sameValue("\u1E98".toLocaleUpperCase(), "\u0057\u030A", "LATIN SMALL LETTER W WITH RING ABOVE");
assert.sameValue("\u1E99".toLocaleUpperCase(), "\u0059\u030A", "LATIN SMALL LETTER Y WITH RING ABOVE");
assert.sameValue("\u1E9A".toLocaleUpperCase(), "\u0041\u02BE", "LATIN SMALL LETTER A WITH RIGHT HALF RING");
assert.sameValue("\u1F50".toLocaleUpperCase(), "\u03A5\u0313", "GREEK SMALL LETTER UPSILON WITH PSILI");
assert.sameValue("\u1F52".toLocaleUpperCase(), "\u03A5\u0313\u0300", "GREEK SMALL LETTER UPSILON WITH PSILI AND VARIA");
assert.sameValue("\u1F54".toLocaleUpperCase(), "\u03A5\u0313\u0301", "GREEK SMALL LETTER UPSILON WITH PSILI AND OXIA");
assert.sameValue("\u1F56".toLocaleUpperCase(), "\u03A5\u0313\u0342", "GREEK SMALL LETTER UPSILON WITH PSILI AND PERISPOMENI");
assert.sameValue("\u1FB6".toLocaleUpperCase(), "\u0391\u0342", "GREEK SMALL LETTER ALPHA WITH PERISPOMENI");
assert.sameValue("\u1FC6".toLocaleUpperCase(), "\u0397\u0342", "GREEK SMALL LETTER ETA WITH PERISPOMENI");
assert.sameValue("\u1FD2".toLocaleUpperCase(), "\u0399\u0308\u0300", "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND VARIA");
assert.sameValue("\u1FD3".toLocaleUpperCase(), "\u0399\u0308\u0301", "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA");
assert.sameValue("\u1FD6".toLocaleUpperCase(), "\u0399\u0342", "GREEK SMALL LETTER IOTA WITH PERISPOMENI");
assert.sameValue("\u1FD7".toLocaleUpperCase(), "\u0399\u0308\u0342", "GREEK SMALL LETTER IOTA WITH DIALYTIKA AND PERISPOMENI");
assert.sameValue("\u1FE2".toLocaleUpperCase(), "\u03A5\u0308\u0300", "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND VARIA");
assert.sameValue("\u1FE3".toLocaleUpperCase(), "\u03A5\u0308\u0301", "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA");
assert.sameValue("\u1FE4".toLocaleUpperCase(), "\u03A1\u0313", "GREEK SMALL LETTER RHO WITH PSILI");
assert.sameValue("\u1FE6".toLocaleUpperCase(), "\u03A5\u0342", "GREEK SMALL LETTER UPSILON WITH PERISPOMENI");
assert.sameValue("\u1FE7".toLocaleUpperCase(), "\u03A5\u0308\u0342", "GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND PERISPOMENI");
assert.sameValue("\u1FF6".toLocaleUpperCase(), "\u03A9\u0342", "GREEK SMALL LETTER OMEGA WITH PERISPOMENI");
assert.sameValue("\u1F80".toLocaleUpperCase(), "\u1F08\u0399", "GREEK SMALL LETTER ALPHA WITH PSILI AND YPOGEGRAMMENI");
assert.sameValue("\u1F81".toLocaleUpperCase(), "\u1F09\u0399", "GREEK SMALL LETTER ALPHA WITH DASIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F82".toLocaleUpperCase(), "\u1F0A\u0399", "GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F83".toLocaleUpperCase(), "\u1F0B\u0399", "GREEK SMALL LETTER ALPHA WITH DASIA AND VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F84".toLocaleUpperCase(), "\u1F0C\u0399", "GREEK SMALL LETTER ALPHA WITH PSILI AND OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F85".toLocaleUpperCase(), "\u1F0D\u0399", "GREEK SMALL LETTER ALPHA WITH DASIA AND OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F86".toLocaleUpperCase(), "\u1F0E\u0399", "GREEK SMALL LETTER ALPHA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI");
assert.sameValue("\u1F87".toLocaleUpperCase(), "\u1F0F\u0399", "GREEK SMALL LETTER ALPHA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI");
assert.sameValue("\u1F88".toLocaleUpperCase(), "\u1F08\u0399", "GREEK CAPITAL LETTER ALPHA WITH PSILI AND PROSGEGRAMMENI");
assert.sameValue("\u1F89".toLocaleUpperCase(), "\u1F09\u0399", "GREEK CAPITAL LETTER ALPHA WITH DASIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F8A".toLocaleUpperCase(), "\u1F0A\u0399", "GREEK CAPITAL LETTER ALPHA WITH PSILI AND VARIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F8B".toLocaleUpperCase(), "\u1F0B\u0399", "GREEK CAPITAL LETTER ALPHA WITH DASIA AND VARIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F8C".toLocaleUpperCase(), "\u1F0C\u0399", "GREEK CAPITAL LETTER ALPHA WITH PSILI AND OXIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F8D".toLocaleUpperCase(), "\u1F0D\u0399", "GREEK CAPITAL LETTER ALPHA WITH DASIA AND OXIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F8E".toLocaleUpperCase(), "\u1F0E\u0399", "GREEK CAPITAL LETTER ALPHA WITH PSILI AND PERISPOMENI AND PROSGEGRAMMENI");
assert.sameValue("\u1F8F".toLocaleUpperCase(), "\u1F0F\u0399", "GREEK CAPITAL LETTER ALPHA WITH DASIA AND PERISPOMENI AND PROSGEGRAMMENI");
assert.sameValue("\u1F90".toLocaleUpperCase(), "\u1F28\u0399", "GREEK SMALL LETTER ETA WITH PSILI AND YPOGEGRAMMENI");
assert.sameValue("\u1F91".toLocaleUpperCase(), "\u1F29\u0399", "GREEK SMALL LETTER ETA WITH DASIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F92".toLocaleUpperCase(), "\u1F2A\u0399", "GREEK SMALL LETTER ETA WITH PSILI AND VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F93".toLocaleUpperCase(), "\u1F2B\u0399", "GREEK SMALL LETTER ETA WITH DASIA AND VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F94".toLocaleUpperCase(), "\u1F2C\u0399", "GREEK SMALL LETTER ETA WITH PSILI AND OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F95".toLocaleUpperCase(), "\u1F2D\u0399", "GREEK SMALL LETTER ETA WITH DASIA AND OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1F96".toLocaleUpperCase(), "\u1F2E\u0399", "GREEK SMALL LETTER ETA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI");
assert.sameValue("\u1F97".toLocaleUpperCase(), "\u1F2F\u0399", "GREEK SMALL LETTER ETA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI");
assert.sameValue("\u1F98".toLocaleUpperCase(), "\u1F28\u0399", "GREEK CAPITAL LETTER ETA WITH PSILI AND PROSGEGRAMMENI");
assert.sameValue("\u1F99".toLocaleUpperCase(), "\u1F29\u0399", "GREEK CAPITAL LETTER ETA WITH DASIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F9A".toLocaleUpperCase(), "\u1F2A\u0399", "GREEK CAPITAL LETTER ETA WITH PSILI AND VARIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F9B".toLocaleUpperCase(), "\u1F2B\u0399", "GREEK CAPITAL LETTER ETA WITH DASIA AND VARIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F9C".toLocaleUpperCase(), "\u1F2C\u0399", "GREEK CAPITAL LETTER ETA WITH PSILI AND OXIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F9D".toLocaleUpperCase(), "\u1F2D\u0399", "GREEK CAPITAL LETTER ETA WITH DASIA AND OXIA AND PROSGEGRAMMENI");
assert.sameValue("\u1F9E".toLocaleUpperCase(), "\u1F2E\u0399", "GREEK CAPITAL LETTER ETA WITH PSILI AND PERISPOMENI AND PROSGEGRAMMENI");
assert.sameValue("\u1F9F".toLocaleUpperCase(), "\u1F2F\u0399", "GREEK CAPITAL LETTER ETA WITH DASIA AND PERISPOMENI AND PROSGEGRAMMENI");
assert.sameValue("\u1FA0".toLocaleUpperCase(), "\u1F68\u0399", "GREEK SMALL LETTER OMEGA WITH PSILI AND YPOGEGRAMMENI");
assert.sameValue("\u1FA1".toLocaleUpperCase(), "\u1F69\u0399", "GREEK SMALL LETTER OMEGA WITH DASIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FA2".toLocaleUpperCase(), "\u1F6A\u0399", "GREEK SMALL LETTER OMEGA WITH PSILI AND VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FA3".toLocaleUpperCase(), "\u1F6B\u0399", "GREEK SMALL LETTER OMEGA WITH DASIA AND VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FA4".toLocaleUpperCase(), "\u1F6C\u0399", "GREEK SMALL LETTER OMEGA WITH PSILI AND OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FA5".toLocaleUpperCase(), "\u1F6D\u0399", "GREEK SMALL LETTER OMEGA WITH DASIA AND OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FA6".toLocaleUpperCase(), "\u1F6E\u0399", "GREEK SMALL LETTER OMEGA WITH PSILI AND PERISPOMENI AND YPOGEGRAMMENI");
assert.sameValue("\u1FA7".toLocaleUpperCase(), "\u1F6F\u0399", "GREEK SMALL LETTER OMEGA WITH DASIA AND PERISPOMENI AND YPOGEGRAMMENI");
assert.sameValue("\u1FA8".toLocaleUpperCase(), "\u1F68\u0399", "GREEK CAPITAL LETTER OMEGA WITH PSILI AND PROSGEGRAMMENI");
assert.sameValue("\u1FA9".toLocaleUpperCase(), "\u1F69\u0399", "GREEK CAPITAL LETTER OMEGA WITH DASIA AND PROSGEGRAMMENI");
assert.sameValue("\u1FAA".toLocaleUpperCase(), "\u1F6A\u0399", "GREEK CAPITAL LETTER OMEGA WITH PSILI AND VARIA AND PROSGEGRAMMENI");
assert.sameValue("\u1FAB".toLocaleUpperCase(), "\u1F6B\u0399", "GREEK CAPITAL LETTER OMEGA WITH DASIA AND VARIA AND PROSGEGRAMMENI");
assert.sameValue("\u1FAC".toLocaleUpperCase(), "\u1F6C\u0399", "GREEK CAPITAL LETTER OMEGA WITH PSILI AND OXIA AND PROSGEGRAMMENI");
assert.sameValue("\u1FAD".toLocaleUpperCase(), "\u1F6D\u0399", "GREEK CAPITAL LETTER OMEGA WITH DASIA AND OXIA AND PROSGEGRAMMENI");
assert.sameValue("\u1FAE".toLocaleUpperCase(), "\u1F6E\u0399", "GREEK CAPITAL LETTER OMEGA WITH PSILI AND PERISPOMENI AND PROSGEGRAMMENI");
assert.sameValue("\u1FAF".toLocaleUpperCase(), "\u1F6F\u0399", "GREEK CAPITAL LETTER OMEGA WITH DASIA AND PERISPOMENI AND PROSGEGRAMMENI");
assert.sameValue("\u1FB3".toLocaleUpperCase(), "\u0391\u0399", "GREEK SMALL LETTER ALPHA WITH YPOGEGRAMMENI");
assert.sameValue("\u1FBC".toLocaleUpperCase(), "\u0391\u0399", "GREEK CAPITAL LETTER ALPHA WITH PROSGEGRAMMENI");
assert.sameValue("\u1FC3".toLocaleUpperCase(), "\u0397\u0399", "GREEK SMALL LETTER ETA WITH YPOGEGRAMMENI");
assert.sameValue("\u1FCC".toLocaleUpperCase(), "\u0397\u0399", "GREEK CAPITAL LETTER ETA WITH PROSGEGRAMMENI");
assert.sameValue("\u1FF3".toLocaleUpperCase(), "\u03A9\u0399", "GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI");
assert.sameValue("\u1FFC".toLocaleUpperCase(), "\u03A9\u0399", "GREEK CAPITAL LETTER OMEGA WITH PROSGEGRAMMENI");
assert.sameValue("\u1FB2".toLocaleUpperCase(), "\u1FBA\u0399", "GREEK SMALL LETTER ALPHA WITH VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FB4".toLocaleUpperCase(), "\u0386\u0399", "GREEK SMALL LETTER ALPHA WITH OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FC2".toLocaleUpperCase(), "\u1FCA\u0399", "GREEK SMALL LETTER ETA WITH VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FC4".toLocaleUpperCase(), "\u0389\u0399", "GREEK SMALL LETTER ETA WITH OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FF2".toLocaleUpperCase(), "\u1FFA\u0399", "GREEK SMALL LETTER OMEGA WITH VARIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FF4".toLocaleUpperCase(), "\u038F\u0399", "GREEK SMALL LETTER OMEGA WITH OXIA AND YPOGEGRAMMENI");
assert.sameValue("\u1FB7".toLocaleUpperCase(), "\u0391\u0342\u0399", "GREEK SMALL LETTER ALPHA WITH PERISPOMENI AND YPOGEGRAMMENI");
assert.sameValue("\u1FC7".toLocaleUpperCase(), "\u0397\u0342\u0399", "GREEK SMALL LETTER ETA WITH PERISPOMENI AND YPOGEGRAMMENI");
assert.sameValue("\u1FF7".toLocaleUpperCase(), "\u03A9\u0342\u0399", "GREEK SMALL LETTER OMEGA WITH PERISPOMENI AND YPOGEGRAMMENI");
```
It was tested in Ubuntu 16.04 using the last git revision (31e7be5ae5d27a81d1d44e6f97353c916c67c394). To reproduce:
```
$ gdb --args ./ch assert.js
...
ASSERTION 22603: (/home/gustavo/repos/ChakraCore-git/lib/Common/Exceptions/Throw.cpp, line 95) Internal error!!
Failure: (false)
Thread 1 "ch" received signal SIGILL, Illegal instruction.
0x000055555652b802 in Js::Throw::InternalError () at /home/gustavo/repos/ChakraCore-git/lib/Common/Exceptions/Throw.cpp:95
95 AssertOrFailFastMsg(false, "Internal error!!");
(gdb) bt
#0 0x000055555652b802 in Js::Throw::InternalError () at /home/gustavo/repos/ChakraCore-git/lib/Common/Exceptions/Throw.cpp:95
#1 0x0000555557cc307b in Js::JavascriptString::ToLocaleCaseHelper (thisObj=0x7ffff27a9100, toUpper=true, scriptContext=
0x62200001b158) at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Library/JavascriptString.cpp:3365
#2 0x0000555557cc3779 in Js::JavascriptString::EntryToLocaleUpperCase (function=0x7ffff06c8900, callInfo=...)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Library/JavascriptString.cpp:2146
#3 0x0000555557e4b45e in amd64_CallFunction ()
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100
#4 0x00005555579a57a4 in Js::JavascriptFunction::CallFunction<true> (function=0x7ffff06c8900,
entryPoint=0x555557cc3100 <Js::JavascriptString::EntryToLocaleUpperCase(Js::RecyclableObject*, Js::CallInfo, ...)>, args=...)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Library/JavascriptFunction.cpp:1356
#5 0x00005555575c2747 in Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)1> > > > (this=0x7fffffffa460, playout=0x7ffff07000f2, function=0x7ffff06c8900, flags=2, spreadIndices=0x0)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Language/InterpreterStackFrame.cpp:3906
#6 0x000055555756ff7e in Js::InterpreterStackFrame::OP_CallI<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)1> > > > (this=0x7fffffffa460, playout=0x7ffff07000f2, flags=0)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/./Language/InterpreterStackFrame.h:469
#7 0x0000555557299760 in Js::InterpreterStackFrame::ProcessUnprofiledMediumLayoutPrefix (this=0x7fffffffa460,
ip=0x7ffff07000fd "\002\\\001\034\001]\002\004", yieldValue=@0x7fffffff5f60: 0x0)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Language/InterpreterHandler.inl:86
#8 0x00005555572135c7 in Js::InterpreterStackFrame::ProcessUnprofiled (this=0x7fffffffa460)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Language/InterpreterLoop.inl:349
#9 0x00005555571c0c49 in Js::InterpreterStackFrame::Process (this=0x7fffffffa460)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Language/InterpreterStackFrame.cpp:3470
#10 0x00005555571beea5 in Js::InterpreterStackFrame::InterpreterHelper (function=0x7ffff2738240, args=...,
returnAddress=0x7ffff06e0fa2, addressOfReturnAddress=0x7fffffffb948, asmJsReturn=0x0)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Language/InterpreterStackFrame.cpp:2055
#11 0x00005555571bcee4 in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7fffffffb960)
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Language/InterpreterStackFrame.cpp:1789
#12 0x00007ffff06e0fa2 in ?? ()
#13 0x00007fffffffb970 in ?? ()
#14 0x0000555557e4b45e in amd64_CallFunction ()
at /home/gustavo/repos/ChakraCore-git/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100
```
Regards,
Gustavo.
|
Internal Error!! at lib/Common/Exceptions/Throw.cpp
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3531/comments
| 2 |
2017-08-15T03:23:42Z
|
2017-09-13T22:18:22Z
|
https://github.com/chakra-core/ChakraCore/issues/3531
| 250,212,037 | 3,531 |
[
"chakra-core",
"ChakraCore"
] |
Hello,
The following code behaves incorrectly (inconsistent with the standard and other engines) in Chakra due to incorrect realization of HasItem() functions:
````
var get_cnt = 0;
var handler = {
get: function(oTarget, sKey) {
print("get " + sKey.toString());
if (sKey.toString()=="constructor") {
return Reflect.get(oTarget, sKey);
} else if (Number(sKey.toString()) != NaN) {
get_cnt++;
return "hahahahaha";
}
return Reflect.get(oTarget, sKey);
},
has: function (oTarget, sKey) {
print("has " + sKey.toString());
return Reflect.has(oTarget, sKey);
},
};
var words1 = ["abc", "aaaaaaa", "abcd", "aaaaabcd", "abcde", "aaaaabcdef"];
var words2 = ["abc", "aaaaaaa", "abcd", "aaaaabcd", "abcde", "aaaaabcdef"];
var p = new Proxy(words1, handler);
words2.__proto__ = p;
words2.length = 10;
var longWords = words1.filter.call(words2, function(word){
return word.length > 6;
});
print(longWords);
````
Expected result:
```
get constructor
has 6
has 7
has 8
has 9
aaaaaaa,aaaaabcd,aaaaabcdef
```
Chakra 1.7-release result:
```
get constructor
get 6
get 7
get 8
get 9
aaaaaaa,aaaaabcd,aaaaabcdef,hahahahaha,hahahahaha,hahahahaha,hahahahaha
```
ICT BT group
2017.8.15
|
Incorrect behavior of Array.prototype.filter()
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3530/comments
| 1 |
2017-08-15T03:18:04Z
|
2018-01-09T23:01:10Z
|
https://github.com/chakra-core/ChakraCore/issues/3530
| 250,211,398 | 3,530 |
[
"chakra-core",
"ChakraCore"
] |
Warning C4768 is an off by default warning in the latest MSVC compiler, which will turned on in the next major compiler release. This warning is hit once in the ChakraCore project.
D:\Chakra\src\lib\Runtime\Base\ThreadContext.cpp(60): warning C4768: __declspec attributes before linkage specification are ignored
The line:
_NOINLINE extern "C" void* MarkerForExternalDebugStep()
should be
extern "C" _NOINLINE void* MarkerForExternalDebugStep()
|
warning C4768: __declspec attributes before linkage specification are ignored
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3521/comments
| 1 |
2017-08-14T16:38:19Z
|
2019-06-04T18:33:03Z
|
https://github.com/chakra-core/ChakraCore/issues/3521
| 250,086,353 | 3,521 |
[
"chakra-core",
"ChakraCore"
] |
Promise.prototype.finally is stage 3 - time to implement it! :-D
Test262 tests are merged.
Spec is [here](https://tc39.github.io/proposal-promise-finally/).
- https://github.com/tc39/proposal-promise-finally/issues/18
|
Implement Promise.prototype.finally
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3520/comments
| 13 |
2017-08-12T17:10:42Z
|
2018-02-15T21:53:45Z
|
https://github.com/chakra-core/ChakraCore/issues/3520
| 249,823,926 | 3,520 |
[
"chakra-core",
"ChakraCore"
] |
```
[ 13%] Building CXX object pal/src/CMakeFiles/Chakra.Pal.dir/thread/threadsusp.cpp.o
[ 13%] Building CXX object pal/src/CMakeFiles/Chakra.Pal.dir/exception/machexception.cpp.o
[ 13%] Building CXX object pal/src/CMakeFiles/Chakra.Pal.dir/exception/machmessage.cpp.o
[ 13%] Building ASM object pal/src/CMakeFiles/Chakra.Pal.dir/arch/i386/activationhandlerwrapper.S.o
[ 13%] Building ASM object pal/src/CMakeFiles/Chakra.Pal.dir/arch/i386/dispatchexceptionwrapper.S.o
[ 13%] Building ASM object pal/src/CMakeFiles/Chakra.Pal.dir/arch/i386/context2.S.o
[ 13%] Building ASM object pal/src/CMakeFiles/Chakra.Pal.dir/arch/i386/debugbreak.S.o
[ 14%] Building CXX object pal/src/CMakeFiles/Chakra.Pal.dir/arch/i386/processor.cpp.o
[ 14%] Building ASM object pal/src/CMakeFiles/Chakra.Pal.dir/arch/i386/asmhelpers.S.o
[ 14%] Built target Chakra.Pal
Scanning dependencies of target libwabt
[ 14%] Building CXX object lib/wabt/CMakeFiles/libwabt.dir/src/prebuilt/wast-lexer-gen.cc.o
In file included from src/wast-lexer.cc:17:
In file included from /Volumes/T3/RemotesCommity/node-chakracore/deps/chakrashim/core/lib/wabt/src/wast-lexer.h:24:
/Volumes/T3/RemotesCommity/node-chakracore/deps/chakrashim/core/lib/wabt/src/common.h:23:10: fatal error: 'cstdint' file not found
#include <cstdint>
^
error generated.
make[2]: *** [lib/wabt/CMakeFiles/libwabt.dir/src/prebuilt/wast-lexer-gen.cc.o] Error 1
make[1]: *** [lib/wabt/CMakeFiles/libwabt.dir/all] Error 2
make: *** [all] Error 2
See error details above. Exit code was 2
```
i try setting up the build target to `latest` macOS and everything go fine
|
[macOS | Building] error with 'cstdint' file not found while build for macOS 10.7
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3519/comments
| 5 |
2017-08-12T07:51:05Z
|
2017-08-21T13:15:25Z
|
https://github.com/chakra-core/ChakraCore/issues/3519
| 249,796,199 | 3,519 |
[
"chakra-core",
"ChakraCore"
] |
https://github.com/tc39/ecma402/issues/122
|
[INTL] Change Intl prototypes to plain objects
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3513/comments
| 3 |
2017-08-10T20:54:25Z
|
2018-08-28T15:50:50Z
|
https://github.com/chakra-core/ChakraCore/issues/3513
| 249,473,388 | 3,513 |
[
"chakra-core",
"ChakraCore"
] |
We are trying to upload 5GB file on microsoft edge version Microsoft Edge 38.14393.1066.0 using java script fromdata.
const formData = new FormData();
formData.append("file", file, file.name);
Please note that we are not using chunk file reading . Directly giving file to browser. Is this issue with javascript or windows operating system?
Same file size is working in Chrome and FireFox browser
|
Arithmetic result exceeded 32 bits.
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3508/comments
| 1 |
2017-08-10T09:40:33Z
|
2017-08-10T23:02:52Z
|
https://github.com/chakra-core/ChakraCore/issues/3508
| 249,289,201 | 3,508 |
[
"chakra-core",
"ChakraCore"
] |
Building Chakra with MSVC + /permissive- failed with error C4596. Similar issue with https://github.com/Microsoft/ChakraCore/issues/2862
Here is issue:
https://github.com/Microsoft/ChakraCore/blob/master/lib/Runtime/Base/ThreadContext.h#L1784
https://github.com/Microsoft/ChakraCore/blob/master/lib/Runtime/Base/ThreadContext.h#L1793
Failures:
d:\chakra\src\lib\runtime\Base/ThreadContext.h(1784): error C4596: '{ctor}': illegal qualified name in member declaration [D:\Chakra\src\lib\Parser\Chakra.Parser.vcxproj]
d:\chakra\src\lib\runtime\Base/ThreadContext.h(1793): error C4596: '{dtor}': illegal qualified name in member declaration [D:\Chakra\src\lib\Parser\Chakra.Parser.vcxproj]
The member function declaration above is inside the class βAutoDisableInterruptβ and the prefix 'AutoDisableInterrupt::' before the member function name isnβt allowed. The fix is to remove it.
|
Issues found when building Chakra with MSVC + /permissive-
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3507/comments
| 0 |
2017-08-10T07:20:46Z
|
2017-08-21T21:14:44Z
|
https://github.com/chakra-core/ChakraCore/issues/3507
| 249,255,104 | 3,507 |
[
"chakra-core",
"ChakraCore"
] |
Using chakracore 1.7.1.0 of chakranode I noticed and interop issue when a unit test in my project failed.
```js
o = {}
o.b = 2
o.a = 1
delete o.b
o.b = 2
Object.keys(o) // produces [ 'b', 'a' ] while v8 produces ['a', 'b']
```
The example uses `Object.keys` but `for-in` and friends will produce a similar result.
|
Incorrect iteration order of deleted and re-assigned properties.
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3505/comments
| 6 |
2017-08-10T00:35:24Z
|
2019-06-07T18:34:21Z
|
https://github.com/chakra-core/ChakraCore/issues/3505
| 249,200,427 | 3,505 |
[
"chakra-core",
"ChakraCore"
] |
The isShared bool is uninitialized in the copy-ctor. It should be initialized to false since we make a new ValueInfo in it. If it happens to be true, we will get unnecessary copies.
class JsTypeValueInfo : public ValueInfo
{
private:
JITTypeHolder jsType;
Js::EquivalentTypeSet * jsTypeSet;
**bool isShared;**
public:
JsTypeValueInfo(JITTypeHolder type)
: ValueInfo(Uninitialized, ValueStructureKind::JsType),
jsType(type), jsTypeSet(nullptr), **isShared(false)**
{
}
JsTypeValueInfo(Js::EquivalentTypeSet * typeSet)
: ValueInfo(Uninitialized, ValueStructureKind::JsType),
jsType(nullptr), jsTypeSet(typeSet), **isShared(false)**
{
}
JsTypeValueInfo(const JsTypeValueInfo& other)
: ValueInfo(Uninitialized, ValueStructureKind::JsType),
jsType(other.jsType), jsTypeSet(other.jsTypeSet) **<<<<<<<<<<<<<<<**
{
}
|
isShared uninitialized in copy-ctor of JsTypeValueInfo
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3497/comments
| 1 |
2017-08-08T20:47:56Z
|
2017-08-11T01:06:03Z
|
https://github.com/chakra-core/ChakraCore/issues/3497
| 248,841,594 | 3,497 |
[
"chakra-core",
"ChakraCore"
] |
This is is a follow on from https://github.com/Microsoft/ChakraCore/issues/2278 . The currently available Linux ChakraCore binaries only work on some Linux distros. Ideally they would work on all (currently maintained) Linux distros.
I've put together a rough build system that is capable of generating such binaries (https://github.com/cosinusoidally/ChakraCore-experiments/tree/master/build-chakracore). It does this by generating a CentOS 6 based root filesystem, and building a copy of CMake 3.5.2 and Clang 3.8. It then uses CMake and Clang to build ChakraCore. Unfortunately there are still one or two manual steps since ChakraCore's CMakeFiles do not instruct the compiler to link to librt. I'm sure that would be easy to patch, but my knowledge of CMake is quite limited. My current work around is to manually invoke the compiler with "-lrt" appended to the command line (only 3 or 4 build steps error out, so this isn't too tedious to do).
I also noticed that the binary I built would crash on my Core 2 Duo based system. I was running a simple "Hello World" JavaScript script. The same binary did not crash on a Haswell based system. Any idea why that would be? I am guessing that you may be using SSE 4 instructions? If so, is it possible to build ChakraCore to target only SSE 2?
|
Make official ChakraCore Linux binaries that work on all currently maintained versions of Linux
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3494/comments
| 9 |
2017-08-08T00:29:53Z
|
2018-05-07T23:11:34Z
|
https://github.com/chakra-core/ChakraCore/issues/3494
| 248,567,780 | 3,494 |
[
"chakra-core",
"ChakraCore"
] |
I've run this test case of 170 modules with some circular references and no actual code at all against Edge 41.16257.1000.0, and it seems it is enough to stall the browser completely. Safari handles this case in under a second, and Chrome have just fixed a bug for it to load faster as well.
To replicate, clone the repo at https://github.com/guybedford/modules-slow-tree, run a local http server, and navigate to test.html. This should result in a long loop that never resolves (and it happens pretty quickly in the tree in Edge it seems).
Getting the resolution performance will be a priority for real world use cases. Just let me know if there is anything further I can do to help.
|
ES Modules - Unable to load a circular module tree
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3492/comments
| 6 |
2017-08-07T11:20:03Z
|
2017-08-25T08:30:11Z
|
https://github.com/chakra-core/ChakraCore/issues/3492
| 248,380,820 | 3,492 |
[
"chakra-core",
"ChakraCore"
] |
https://github.com/WebAssembly/tail-call
|
WASM - Tail Call (3w)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3484/comments
| 0 |
2017-08-03T22:44:15Z
|
2018-12-15T22:17:14Z
|
https://github.com/chakra-core/ChakraCore/issues/3484
| 247,856,303 | 3,484 |
[
"chakra-core",
"ChakraCore"
] |
https://github.com/WebAssembly/exception-handling
|
WASM - Exception-Handling (1m)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3483/comments
| 0 |
2017-08-03T22:44:09Z
|
2017-08-03T22:44:37Z
|
https://github.com/chakra-core/ChakraCore/issues/3483
| 247,856,278 | 3,483 |
[
"chakra-core",
"ChakraCore"
] |
https://github.com/WebAssembly/simd
|
WASM - SIMD (2m)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3482/comments
| 1 |
2017-08-03T22:41:51Z
|
2017-12-21T00:25:28Z
|
https://github.com/chakra-core/ChakraCore/issues/3482
| 247,855,895 | 3,482 |
[
"chakra-core",
"ChakraCore"
] |
https://github.com/WebAssembly/gc
|
WASM - Managed Data/GC (2m)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3481/comments
| 0 |
2017-08-03T22:37:00Z
|
2017-08-03T22:37:12Z
|
https://github.com/chakra-core/ChakraCore/issues/3481
| 247,855,049 | 3,481 |
[
"chakra-core",
"ChakraCore"
] |
https://github.com/WebAssembly/multi-value
|
WASM - Multi-Value (2w)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3478/comments
| 1 |
2017-08-03T22:33:59Z
|
2018-03-21T18:07:54Z
|
https://github.com/chakra-core/ChakraCore/issues/3478
| 247,854,507 | 3,478 |
[
"chakra-core",
"ChakraCore"
] |
https://github.com/WebAssembly/threads
[Overview](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md)
- [ ] Atomic Operations
- [x] [load/store](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#loadstore)
- [ ] [RMW](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#read-modify-write)
- [ ] [Compare-Exchange](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#compare-exchange)
- [ ] [Wait & Wake](https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#wait-and-wake-operators)
- [x] SharedArrayBuffer
- [ ] Acquire lock on grow memory for shared memory?
- [ ] Verify memory initialization order respect spec
|
WASM - Threads (1m)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3477/comments
| 1 |
2017-08-03T22:29:28Z
|
2019-07-24T05:17:06Z
|
https://github.com/chakra-core/ChakraCore/issues/3477
| 247,853,669 | 3,477 |
[
"chakra-core",
"ChakraCore"
] |
https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md
|
WASM - Bulk memory operations (2w)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/3476/comments
| 0 |
2017-08-03T22:25:51Z
|
2018-02-28T22:44:52Z
|
https://github.com/chakra-core/ChakraCore/issues/3476
| 247,852,946 | 3,476 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.