summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/self-hosting/invoke-self-hosted-with-primitive-this.js
blob: 24130e0f01f55d05d7ea50d24d04d78dd9fe04b8 (plain)
1
2
3
4
5
6
7
try {
	[0,0].sort(Array.some)
	"".replace(RegExp(), Array.reduce)
} catch (error) {
	if (!(error instanceof TypeError && /^\w is not a function$/.test(error.message)))
		throw error;
}