blob: 0e8cc5db02b3675438ef17255c50fa60702ba3c4 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error(`bad value: ${String(actual)}`);
}
var regexp = /Hello/;
var string = "Hello";
var otherRealm = createGlobalObject();
shouldBe(otherRealm.RegExp.prototype[Symbol.replace].call(regexp, string, "OK"), "OK")