Last active
September 26, 2016 16:28
-
-
Save goofballLogic/61e4e7df3e7671b9ff66114a32c8ad9d to your computer and use it in GitHub Desktop.
Not sure that serialization "works"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> new RegExp( "/" ) | |
/\// | |
> var x = new RegExp( "/" ) | |
undefined | |
> x.test( "/hello" ) | |
true | |
> var y = new RegExp( x.toString() ) | |
undefined | |
> y.test( "/hello" ) | |
false | |
> x | |
/\// | |
> y | |
/\/\/\// | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment