Bug 213395

Summary: Make $vm properties non-configurable, non-enumerable, and non-writable.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch.
saam: review+
patch for landing. none

Description Mark Lam 2020-06-19 11:41:12 PDT
...
Comment 1 Mark Lam 2020-06-19 11:43:30 PDT
Created attachment 402300 [details]
proposed patch.
Comment 2 Saam Barati 2020-06-19 11:59:17 PDT
Comment on attachment 402300 [details]
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=402300&action=review

> Source/JavaScriptCore/ChangeLog:3
> +        Make $vm properties non-configurable, non-enumerable, and non-writable.

say why
Comment 3 Yusuke Suzuki 2020-06-19 12:01:49 PDT
Comment on attachment 402300 [details]
proposed patch.

r=me. Can we have a test that ensures Object.keys for $vm does not contain interesting keys?
Comment 4 Mark Lam 2020-06-19 13:55:12 PDT
Created attachment 402320 [details]
patch for landing.
Comment 5 Mark Lam 2020-06-19 14:01:05 PDT
Thanks for the reviews.  Landed in r263283: <http://trac.webkit.org/r263283>.
Comment 6 Radar WebKit Bug Importer 2020-06-19 14:02:17 PDT
<rdar://problem/64544350>
Comment 7 Radar WebKit Bug Importer 2020-06-19 14:02:17 PDT
<rdar://problem/64544351>
Comment 8 Mark Lam 2020-06-23 11:09:26 PDT
<rdar://problem/64544350>
Comment 9 Keith Miller 2020-06-23 12:00:26 PDT
Why don't we just freeze $vm?