]> gerrit.simantics Code Review - simantics/district.git/blob - is-implemented.js
3e3a54b6691e55751bf3f68b61276162c416157d
[simantics/district.git] / is-implemented.js
1 'use strict';
2
3 module.exports = function () {
4         var dummyRegExp = /a/;
5         // We need to do check on instance and not on prototype due to how ES2015 spec evolved:
6         // https://github.com/tc39/ecma262/issues/262
7         // https://github.com/tc39/ecma262/pull/263
8         // https://bugs.chromium.org/p/v8/issues/detail?id=4617
9         return 'unicode' in dummyRegExp;
10 };