Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Make watch expressions safe#4107

Merged
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:expressions
Sep 21, 2017
Merged

Make watch expressions safe#4107
jasonLaster merged 1 commit into
firefox-devtools:masterfrom
jasonLaster:expressions

Conversation

@jasonLaster

Copy link
Copy Markdown
Contributor

Associated Issue: #4106

Summary of Changes

  • wraps expressions in a try/catch

Test Plan

unit tests

Comment thread src/utils/expressions.js Outdated
return input.replace(/\\/g, "\\\\").replace(/"/g, "\\$&");
}

// eval("try {foo.barn" + '\n' + "} catch (e) {e.name + ': ' + e.message;}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove comment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants