~ubuntu-branches/ubuntu/saucy/mozjs17/saucy

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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);