Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / ecma_5 / misc / unwrapped-no-such-method.js
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);