The expression "typeof x" throws an exception when x is undefined, but it should return undefined instead. This affects the JavaScriptCore regression tests ecma/Expressions/11.4.1.js and js1_5/Array/regress-157652.js.
Created attachment 20795 [details] Proposed patch This fixes the two tests.
r=me if you use resolveBaseAndProperty instead.
Comment on attachment 20795 [details] Proposed patch Cameron pointed out that resolveBaseAndProperty throws an exception for undefined variables. Doh! r=me
r32494