Skip to content

Safari Technology Preview: 'sticky' error #135

@gpbmike

Description

@gpbmike

Using Safari Technology Preview I get the following error:

null is not an object (evaluating 'XRegExp.exec(appliedPattern, nativeTokens[scope], pos, 'sticky')')

It is thrown by the following line:

var token = XRegExp.exec(appliedPattern, nativeTokens[scope], pos, 'sticky')[0];

To replicate I copied https://github.com/slevithan/xregexp/blob/master/xregexp-all.js and threw it into a codepen. No other JS was added.

http://codepen.io/gpbmike/pen/BKENOg

Open up the developer console and you can see the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions