Title: [175372] trunk/Source/_javascript_Core
Revision
175372
Author
[email protected]
Date
2014-10-30 09:01:53 -0700 (Thu, 30 Oct 2014)

Log Message

Unreviewed assertion fix.

RegExpCachedResult::m_reified is now the dedicated member that knows whether
the result was reified into an array or not. Check that instead of m_result
which is now single-purpose.

* runtime/RegExpCachedResult.cpp:
(JSC::RegExpCachedResult::setInput):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (175371 => 175372)


--- trunk/Source/_javascript_Core/ChangeLog	2014-10-30 13:45:09 UTC (rev 175371)
+++ trunk/Source/_javascript_Core/ChangeLog	2014-10-30 16:01:53 UTC (rev 175372)
@@ -1,3 +1,14 @@
+2014-10-30  Andreas Kling  <[email protected]>
+
+        Unreviewed assertion fix.
+
+        RegExpCachedResult::m_reified is now the dedicated member that knows whether
+        the result was reified into an array or not. Check that instead of m_result
+        which is now single-purpose.
+
+        * runtime/RegExpCachedResult.cpp:
+        (JSC::RegExpCachedResult::setInput):
+
 2014-10-29  Andreas Kling  <[email protected]>
 
         Use plain JSArray for RegExp matches instead of a lazily populated custom object.

Modified: trunk/Source/_javascript_Core/runtime/RegExpCachedResult.cpp (175371 => 175372)


--- trunk/Source/_javascript_Core/runtime/RegExpCachedResult.cpp	2014-10-30 13:45:09 UTC (rev 175371)
+++ trunk/Source/_javascript_Core/runtime/RegExpCachedResult.cpp	2014-10-30 16:01:53 UTC (rev 175372)
@@ -75,7 +75,7 @@
 {
     // Make sure we're reified, otherwise m_reifiedInput will be ignored.
     lastResult(exec, owner);
-    ASSERT(!m_result);
+    ASSERT(m_reified);
     m_reifiedInput.set(exec->vm(), owner, input);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to