Debian Codegraph @

js/src/jit-test/tests/function/function-toString-lazy-name.js

raw
1 assertEq(Map.prototype.set.toString().includes("function set()"), true);
2 assertEq(Object.getOwnPropertyDescriptor(Map.prototype, 'size').get.toString().includes("function size()"), true);
3 assertEq(Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.toString().includes("function flags()"), true);
4
5 assertEq(Map.prototype.set.toSource().includes("function set()"), true);
6 assertEq(Object.getOwnPropertyDescriptor(Map.prototype, 'size').get.toSource().includes("function get size()"), true);
7 assertEq(Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.toSource().includes("function get flags()"), true);