()
| 23 | // Only javascript methods can be optimized through %OptimizeFunctionOnNextCall |
| 24 | // This is why we surround the C++ method we want to optimize with a JS function. |
| 25 | function testFastPaths() { |
| 26 | // `canParse` binding has two overloads. |
| 27 | assert.strictEqual(URL.canParse('https://www.example.com/path/?query=param#hash'), true); |
| 28 | assert.strictEqual(URL.canParse('/', 'http://n'), true); |
| 29 | } |
| 30 | |
| 31 | // Since our JS function contains other javascript functions, |
| 32 | // we need to specify which function we want to optimize. This is why |
no test coverage detected