1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma_5/misc/unwrapped-no-such-method.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +// Our __noSuchMethod__ handling should only be called when |this| is an object. 1.5 + 1.6 +var x = ""; 1.7 +// Reached from interpreter's JSOP_CALLPROP, and js::mjit::ic::CallProp. 1.8 +try { x.i(); } catch (ex) { } 1.9 + 1.10 +// Reached from interpreter's JSOP_CALLELEM, and js::mjit::stubs::CallElem. 1.11 +try { x[x](); } catch (ex) { } 1.12 + 1.13 +// Reached from js::mjit::stubs::CallProp: 1.14 +try { true.i(); } catch(ex) { } 1.15 + 1.16 +reportCompare(true,true);