2 var sbContent = Cu.Sandbox(null);
3 let xrayedArgs = sbContent.eval("(function(a, b) { return arguments; })('hi', 42)");
5 function checkArgs(a) {
6 Assert.equal(a.length, 2);
7 Assert.equal(a[0], 'hi');
8 Assert.equal(a[1], 42);
11 // Check Xrays to the args.
12 checkArgs(xrayedArgs);
14 // Make sure the spread operator works.
15 checkArgs([...xrayedArgs]);