Description[defineProperty] Fix non-throwing access check failure
ReportFailedAccessCheck() sometimes doesn't throw an exception (it's up
to the embedder). Pretend that OrdinaryDefineOwnProperty() succeeded in
that case. This is consistent with existing behavior of other methods:
- JSObject::DefineOwnPropertyIgnoreAttributes
- JSObject::SetPropertyWithFailedAccessCheck
- Object::SetPropertyWithAccessor
See also commit f66c3f5c356583e0f8e1bab7e6ff1eed86d2d1aa.
BUG=chromium:574217
LOG=n
R=neis@chromium.org
Committed: https://crrev.com/70b7400138f0bffd8fb676c0b9a97424c9e41008
Cr-Commit-Position: refs/heads/master@{#33262}
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comment #Messages
Total messages: 11 (4 generated)
|