Skip to content

String support chakracore - #979

Merged
Connor Peet (connor4312) merged 3 commits into
microsoft:mainfrom
millerds:string-support-chakracore
Apr 23, 2021
Merged

Connor Peet (connor4312) merged 3 commits into
microsoft:mainfrom
millerds:string-support-chakracore

Conversation

@millerds

Copy link
Copy Markdown
Contributor

Some types of Office Add-ins use ChakraCore to run their java script which seem to have a problem with vscode evaluating strings from variables in the code. This stems for the fact that the vscode-js-debug plugin is based on V8 which uses a "value" property in the object returned in their protocol where ChakraCore uses "description". This change allows for either property to be used with "value" taking precedent over "description". The allows us to use vscode for this type of office add-in development.

Note the change also includes a test case for this using ChakraCore assemblies.

});

itIntegrates('chakracore string value', async ({ r }) => {
createFileTree(testFixturesDir, {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll want to bail out here if process.platform !== 'win32'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@connor4312
Connor Peet (connor4312) merged commit b6242ab into microsoft:main Apr 23, 2021
@connor4312 Connor Peet (connor4312) added this to the April 2021 milestone May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants