Commit affc68b8 authored by yangguo's avatar yangguo Committed by Commit bot

Add sticky flag to RegExpMirror.

R=marja@chromium.org

Review URL: https://codereview.chromium.org/840253002

Cr-Commit-Position: refs/heads/master@{#26005}
parent 3d527ff4
...@@ -1265,6 +1265,15 @@ RegExpMirror.prototype.multiline = function() { ...@@ -1265,6 +1265,15 @@ RegExpMirror.prototype.multiline = function() {
}; };
/**
* Returns whether this regular expression has the sticky (y) flag set.
* @return {boolean} Value of the sticky flag
*/
RegExpMirror.prototype.sticky = function() {
return this.value_.sticky;
};
RegExpMirror.prototype.toText = function() { RegExpMirror.prototype.toText = function() {
// Simpel to text which is used when on specialization in subclass. // Simpel to text which is used when on specialization in subclass.
return "/" + this.source() + "/"; return "/" + this.source() + "/";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment