diff -r 000000000000 -r 6474c204b198 js/src/tests/js1_8/genexps/arguments-property-access-in-generator.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/tests/js1_8/genexps/arguments-property-access-in-generator.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,27 @@ +/* + * Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ + * Contributor: + * Jeff Walden + */ + +//----------------------------------------------------------------------------- +var BUGNUMBER = 721322; +var summary = 'Allow f.arguments in generator expressions'; + +print(BUGNUMBER + ": " + summary); + +/************** + * BEGIN TEST * + **************/ + +eval("(function() { return (f.arguments for (x in [1])); })()"); +eval("(function() { var f = { arguments: 12 }; return [f.arguments for (x in [1])]; })()"); + + +/******************************************************************************/ + +if (typeof reportCompare === "function") + reportCompare(true, true); + +print("Tests complete");