Bug 18827

Summary: SquirrelFish: Prevent getters and setters from destroying the current RegisterFile
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, mjs, oliver, zwarich
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   

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);
}