summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/function/function-toString-lazy-name.js
blob: 088cd26e3918600b4c8286a06d6626bb45149467 (plain)
1
2
3
4
5
6
7
assertEq(Map.prototype.set.toString().includes("function set()"), true);
assertEq(Object.getOwnPropertyDescriptor(Map.prototype, 'size').get.toString().includes("function size()"), true);
assertEq(Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.toString().includes("function flags()"), true);

assertEq(Map.prototype.set.toSource().includes("function set()"), true);
assertEq(Object.getOwnPropertyDescriptor(Map.prototype, 'size').get.toSource().includes("function get size()"), true);
assertEq(Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.toSource().includes("function get flags()"), true);