~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/arrow-functions/precedence-2.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// => binds tighter than ,
 
2
 
 
3
var f, g;
 
4
g = (f, h => h + 1);  // sequence expression: (f, (h => h + 1))
 
5
assertEq(g.length, 1);
 
6
assertEq(g(37), 38);