Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

node.exe fails on Win10 ver 1511 with "Failed to initialize context" #22

Closed
gera-k opened this issue Nov 21, 2015 · 1 comment
Closed

Comments

@gera-k
Copy link

gera-k commented Nov 21, 2015

Reproduced it on two Win10/x64 PCs after updating them to ver 1511.
Was able to fix it by the following change to chakra_shim.js:

    diff --git a/deps/chakrashim/lib/chakra_shim.js b/deps/chakrashim/lib/chakra_shim.js
    index 29adee1..79d287c 100644
    --- a/deps/chakrashim/lib/chakra_shim.js
    +++ b/deps/chakrashim/lib/chakra_shim.js
    @@ -390,8 +390,8 @@
           arr.push(Object_getOwnPropertyDescriptor(x, 'caller').get);

           var x = createEmptyStrictModeFunction();
    -      arr.push(Object_getOwnPropertyDescriptor(x, 'caller').get);
    -      arr.push(Object_getOwnPropertyDescriptor(x, 'arguments').get);
    +      arr.push(Object_getOwnPropertyDescriptor(x.__proto__, 'caller').get);
    +      arr.push(Object_getOwnPropertyDescriptor(x.__proto__, 'arguments').get);
           arr.push(Object_getOwnPropertyDescriptor(x(), 'callee').get);

           return arr;
@kunalspathak
Copy link
Member

Thanks for reporting the issue. This is a known problem and will be fixed in next version of node.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants