ChakraCore is the core part of the Chakra Javascript engine that powers Microsoft Edge
wyrichte on ADO_test
Update ChakraCoreStatic.cpp (compare)
wyrichte on Test-PR-webhook---don't-merge
Update ChakraCoreStatic.cpp (compare)
wyrichte on Test-PR-webhook---don't-merge
Update ChakraCoreStatic.cpp (compare)
Object.freeze(foo)
, then you need to get a JsValueRef objectObject
referencing the global Object
, and make sure that you pass that as the this
parameter of the freeze
function, since the C api is somewhat like calling freeze.call(Object, yourObject)
ChakraCoreUtils
unit), it would look like this: JsCallFunction('freeze', [], JsGetProperty(JsGlobal, 'Object'));
use strict; function func(obj) { Object.freeze(obj); obj.prop = "23"; console.log(obj.prop); }
throw an exception?
import
statement? 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?