~ubuntu-branches/ubuntu/trusty/mozjs17/trusty

1
2
3
4
5
6
7
8
9
10
11
12
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 * Contributor: Jason Orendorff
 */

var o = { f: function() { return o.g(); }, g: function() { return arguments.callee.caller; } };
var c = o.f();
var i = 'f';
var d = o[i]();

reportCompare(true, c === o.f && d === o.f(), "");