Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Mar 14, 2019

Add a getter for the attributes of Object.defineProperty, and use it in three places:

  • DataFlow::ObjectDefinePropertyAsPropWrite::getRhs: improve dataflow expressivity (does not impact performance: definitions, XSS/gecko)
  • ExprHasNoEffect::isGetterProperty: sharpen whitelist (no changes)
  • DeadStoreOfProperty: only flag a call to Object.defineProperty if it includes a value (eliminates some FPs, the new result has been eliminated now)

@ghost ghost added the JS label Mar 14, 2019
@ghost ghost self-requested a review as a code owner March 14, 2019 13:43
@xiemaisi xiemaisi merged commit 5441352 into github:master Mar 15, 2019
@ghost ghost mentioned this pull request Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant