1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
4 * Any copyright is dedicated to the Public Domain.
5 * http://creativecommons.org/licenses/publicdomain/
9 return function f(a
, b
, c
) { };
12 assertEq(testLenientAndStrict('var f = fn(); f.name = "g"; f.name',
13 returns("f"), raisesException(TypeError
)),
15 assertEq(testLenientAndStrict('var f = fn(); delete f.name',
16 returns(false), raisesException(TypeError
)),
19 // arity is not a spec defined property of Function.
20 assertEq(testLenientAndStrict('var f = fn(); f.arity = 4; f.arity',
21 returns(4), returns(4)),
23 // arity is not a spec defined property of Function.
24 assertEq(testLenientAndStrict('var f = fn(); delete f.arity',
25 returns(true), returns(true)),
28 reportCompare(true, true);
30 var successfullyParsed
= true;