Source code

Revision control

Copy as Markdown

Other Tools

/*
* Any copyright is dedicated to the Public Domain.
*/
// SKIP test262 export
// Note that the values for enumerable/configurable are inconsistent with
// Reset RegExp.leftContext to the empty string.
/x/.test('x');
var d = Object.getOwnPropertyDescriptor(RegExp, "leftContext");
assertEq(d.set, undefined);
assertEq(typeof d.get, "function");
assertEq(d.enumerable, true);
assertEq(d.configurable, false);
assertEq(d.get.call(RegExp), "");
reportCompare(0, 0, "ok");