js/src/tests/ecma_5/misc/unwrapped-no-such-method.js

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:61c7c300ad4a
1 // Our __noSuchMethod__ handling should only be called when |this| is an object.
2
3 var x = "";
4 // Reached from interpreter's JSOP_CALLPROP, and js::mjit::ic::CallProp.
5 try { x.i(); } catch (ex) { }
6
7 // Reached from interpreter's JSOP_CALLELEM, and js::mjit::stubs::CallElem.
8 try { x[x](); } catch (ex) { }
9
10 // Reached from js::mjit::stubs::CallProp:
11 try { true.i(); } catch(ex) { }
12
13 reportCompare(true,true);

mercurial