blob: 3a9c8e8e6dcbc15873b3c29aaa08382d3bf360d6 [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.match].call(regexp, string)[0], string)