blob: 070386cbf9d9a230571172d43cc0d8d67d813a69 [file] [log] [blame]
description(
'Test for function.name'
);
shouldBe("(function f() {}).name", "'f'");
shouldBe("delete (function f() {}).name", "true");
shouldBe("(function() {}).name", "''");
shouldBe("Math.name", "undefined");
shouldBe("Error.name", "'Error'");
shouldBe("String.prototype.charAt.name", "'charAt'");
shouldBe("document.getElementById.name", "'getElementById'");