haikuwebkit/JSTests/es6/RegExp.prototype_properties...

10 lines
142 B
JavaScript

function test() {
return typeof RegExp.prototype[Symbol.replace] === 'function';
}
if (!test())
throw new Error("Test failed");