Bug 18827 - SquirrelFish: Prevent getters and setters from destroying the current RegisterFile
Summary: SquirrelFish: Prevent getters and setters from destroying the current Registe...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-01 04:23 PDT by Oliver Hunt
Modified: 2008-05-03 00:44 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2008-05-01 04:23:06 PDT
Task tracking
Comment 1 Oliver Hunt 2008-05-01 04:34:11 PDT
Committed r32758
Comment 2 Oliver Hunt 2008-05-01 04:40:16 PDT
Argh!!! need to handle eval as a getter or setter -- 
try {
    f = "f";
    depth = 0;
    __defineSetter__("g", eval);
    g = "print('ZOMG!!!!!!!')";
} catch(e) {
    print(e);
}