Files
ola5doc/sys/node_modules/es5-ext/test/reg-exp/#/is-sticky.js
T

11 lines
241 B
JavaScript

'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");
};