summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/test/reg-exp/#/is-sticky.js
blob: e154ac2916557fe4ba1bdf315ed36028ee178b1e (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';

module.exports = function (t, a) {
	var re;
	a(t.call(/raz/), false, "Normal");
	a(t.call(/raz/g), false, "Global");
	try { re = new RegExp('raz', 'y'); } catch (ignore) {}
	if (!re) return;
	a(t.call(re), true, "Sticky");
};