diff options
author | New Tobin Paradigm <email@mattatobin.com> | 2019-11-14 22:44:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 22:44:54 -0500 |
commit | fc2836679476248bd60709349d00d9b1b51b6cbe (patch) | |
tree | 8ded8244cbfc6e7725c235b4f2350641682fff2e | |
parent | 00573571a226a0c59dd744da67483864a22911aa (diff) | |
parent | e79607a7a694dc2d48d65697b48138fa585145c9 (diff) | |
download | uxp-fc2836679476248bd60709349d00d9b1b51b6cbe.tar.gz |
Merge pull request #1290 from g4jc/bug_1279
Update TestingFunctions.cpp for regex lookbehind changes
-rw-r--r-- | js/src/builtin/TestingFunctions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/builtin/TestingFunctions.cpp b/js/src/builtin/TestingFunctions.cpp index 4363c7aed8..072a72b757 100644 --- a/js/src/builtin/TestingFunctions.cpp +++ b/js/src/builtin/TestingFunctions.cpp @@ -3900,10 +3900,10 @@ ConvertRegExpTreeToObject(JSContext* cx, irregexp::RegExpTree* tree) return nullptr; return obj; } - if (tree->IsLookahead()) { - if (!StringProp(cx, obj, "type", "Lookahead")) + if (tree->IsLookaround()) { + if (!StringProp(cx, obj, "type", "Lookaround")) return nullptr; - irregexp::RegExpLookahead* t = tree->AsLookahead(); + irregexp::RegExpLookaround* t = tree->AsLookaround(); if (!BooleanProp(cx, obj, "is_positive", t->is_positive())) return nullptr; if (!TreeProp(cx, obj, "body", t->body())) |