Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 22:42
    rhuanjl synchronize #5885
  • Jan 31 22:39
    MikeHolman synchronize #5923
  • Jan 31 22:28
    MikeHolman synchronize #5923
  • Jan 31 19:48
    MikeHolman synchronize #5923
  • Jan 31 19:03
    penzn synchronize #5903
  • Jan 31 17:15
    penzn synchronize #5903
  • Jan 30 22:33
    wyrichte opened #5927
  • Jan 30 22:33

    wyrichte on ADO_test

    Update ChakraCoreStatic.cpp (compare)

  • Jan 30 22:32
    wyrichte closed #5916
  • Jan 30 20:20
    MikeHolman synchronize #5923
  • Jan 30 19:56
    MikeHolman synchronize #5923
  • Jan 30 19:53
    MikeHolman synchronize #5923
  • Jan 30 19:35

    wyrichte on Test-PR-webhook---don't-merge

    Update ChakraCoreStatic.cpp (compare)

  • Jan 30 19:35
    wyrichte synchronize #5916
  • Jan 30 19:07
    wyrichte synchronize #5925
  • Jan 30 18:54

    wyrichte on Test-PR-webhook---don't-merge

    Update ChakraCoreStatic.cpp (compare)

  • Jan 30 18:54
    wyrichte synchronize #5916
  • Jan 30 18:12
    wyrichte closed #5926
  • Jan 30 18:12
    wyrichte opened #5926
  • Jan 30 01:43
    wyrichte synchronize #5925
Grahame Grieve
@grahamegrieve
shouldn't this: use strict; function func(obj) { Object.freeze(obj); obj.prop = "23"; console.log(obj.prop); } throw an exception?
Bruce Pascoe
@fatcerberus
Put use strict in quotes. It’s a string followed by a semicolon
Note that strict mode doesn’t catch nonexisting property reads. Those still come back as undefined
It only catches nonexisting variables
Attempting to write to the frozen object will through an error in strict mode though
Grahame Grieve
@grahamegrieve
ok thanks.
Ondrej Kelle
@tondrej
Apparently upcoming 1.12 brings JsParseScriptAttributeStrictMode which can be passed to JsParse/JsRun (instead of augmenting your scripts with "use strict";) - nice :-) thanks!
Viktor Elofsson
@vktr
Hi! Is there any way I can return a native object from an importstatement? I'm embedding ChakraCore in a desktop application for scripting support and would like users to import { App } from 'some-native-module'; where some-native-module is an object I create in native code. Any pointers?
Richard
@rhuanjl
@vktr only way I can think of (without hacking/adding a feature to CC) would be to create a shim module in JS over the top of your native methods, you'd then intercept the 'some-native-module' specifier and load your shim module - question would be how to make your native methods available whilst executing that shim without leaving them on the global object
Bruce Pascoe
@fatcerberus
Trying to compile the latest master of ChakraCore with MSVC 2017 but getting this error on one of my machines (it built fine on my laptop):
29>d:\src\chakracore\lib\common\core\globalsecuritypolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO'
Anyone have an idea what's wrong?
Louis Lafreniere
@LouisLaf
PCFG_CALL_TARGET_INFO is defined in winnt.h, but you need to have a recent enough SDK. I'm using 10.0.16299.0.
Bruce Pascoe
@fatcerberus
Pretty sure I have 10.0.17763(?). Whatever the latest is
Louis Lafreniere
@LouisLaf
That version of winnt.h does also contain the define. It turns out that's what I'm actually using... You can verify within VS by looking at the VC++ directories in the build properties, and seeing what they evaluate to.
Alex Syrotenko
@Fly-Style
@rhuanjl
I don't think they've said anything about open sourcing EdgeHtml
@Fly-Style I think I'm the only regular external contributor to chakracore it would be cool to have another one around
@rhuanjl I am sorry for a big delay.
Agree with you :)
Rami
@icnocop
Hi! :)
Rami
@icnocop
Microsoft update KB4507460 released on July 9, 2019 causes an exception in jscript9.dll in Windows Server 2016 when using MFC's CDHtmlDialog. It basically causes the desktop application to crash. I'm wondering if I should report the issue in https://github.com/microsoft/ChakraCore or https://social.msdn.microsoft.com/Forums/Windowsdesktop/en-us/home? Thanks!
jscript9.dll v11.0.14393.3085
:smile:
Rami
@icnocop
Great, someone posted a solution so at least the app doesn't crash. :)
Michael Holman
@MikeHolman
does the app still work as intended? In general I don't think there should be behavioral changes from these updates
Michael Holman
@MikeHolman
from your call stack it looks like a DOM error is being thrown, so probably not related to JavaScript, but i'll forward your report on to the appropriate team
Rami
@icnocop
Hi Michael. Unfortunately, the app still crashes when running in Release mode without the debugger attached. :(
Rami
@icnocop
Thank you.
Rami
@icnocop
I discovered the issue to be related to the "Disable Script Debugger" registry value which seems to be the best work-around so far...
I just wish I can control that setting for my specific application and/or web control.
Alexander Gayko
@AdmiralSnyder
is this a good place to ask questions about the edge debug server?
Jimmy Thomson
@MSLaguana
What exactly do you mean by edge debug server? If the question isn't specifically about javascript, then this is probably not the best place to ask
Alexander Gayko
@AdmiralSnyder
well,i'm doing Process.Start("MicrosoftEdge.exe", "--devtools-server-port 9222") to get a remote-controllable edge instance. It always opens a new tab, even if the debug server is already running, so i want to ask how to prevent that...
Rami
@icnocop
Check if MicrosoftEdge.exe is already running
Rami
@icnocop
@MikeHolman, just wondering if there have been any updates on your end? I was redirected from that post, and so I posted the issue here: https://developercommunity.visualstudio.com/content/problem/658792/unhandled-exception-in-jscript9dll-in-windows-serv.html Then later, I was redirected again, so I posted the issue here: https://aka.ms/AA5qvxe Thank you.
Michael Holman
@MikeHolman
I was told that a fix will go out for this in 8B
(August 13th)
Rami
@icnocop
@MikeHolman, great, thank you! Is there a KB article or some other type of reference I can use to keep track of the issue?
Michael Holman
@MikeHolman
I don't think so, but I'll ask
Rami
@icnocop
Thank you.
Alexander Gayko
@AdmiralSnyder
@icnocop there are multiple instances of MicrosoftEdge.exe already running, yet it opens a new tab.
Alexander Gayko
@AdmiralSnyder
i get this error when trying to run a bookmarklet on the GitHub page: CSP14312: Die Direktive script.src github.githubassets.com in Content-Security-Policy wurde durch eine Ressource verletzt: inline script. Die Ressource wird blockiert. My bookmarklet doesn't origin from github.githubassets.com - how is this configured?
when being on www.google.com, this does not occur.
Rami
@icnocop
@AdmiralSnyder, you explicitly called Process.Start which launches a new instance.
Close all instances before calling Process.Start
@AdmiralSnyder, regarding the bookmarklet issue, see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11320214/
Rami
@icnocop
Maybe the work-around here works: https://stackoverflow.com/a/47327040/90287
Alexander Gayko
@AdmiralSnyder
@icnocop thanks. I solved it by building an edge extension.
Closing all instances is no option, because I want to keep my open windows.
Rami
@icnocop
@AdmiralSnyder, I don't think it's possible the way you expect. Why do you want to keep your open windows? Maybe you can save your open windows, close all instances, run your test, then re-open your windows.
Rami
@icnocop
Actually, try this: LaunchWinApp.exe "shell:Appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" "https://answers.microsoft.com/en-us/"
Alexander Gayko
@AdmiralSnyder
i'll try, thanks.
Rami
@icnocop
@MikeHolman, The windows update released today, KB4512517 (https://support.microsoft.com/en-us/help/4512517), resolves the JavaScript issue we were having. Thank you very much! :tada:
Michael Holman
@MikeHolman
glad to hear!