Title: [153774] trunk/Source/_javascript_Core
Revision
153774
Author
[email protected]
Date
2013-08-06 17:19:28 -0700 (Tue, 06 Aug 2013)

Log Message

Assertion failure in emitExpressionInfo when reloading with Web Inspector open.
https://bugs.webkit.org/show_bug.cgi?id=119532.

Reviewed by Oliver Hunt.

* parser/Parser.cpp:
(JSC::::Parser):
- Just need to initialize the Parser's JSTokenLocation's initial line and
  startOffset as well during Parser construction.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (153773 => 153774)


--- trunk/Source/_javascript_Core/ChangeLog	2013-08-07 00:13:32 UTC (rev 153773)
+++ trunk/Source/_javascript_Core/ChangeLog	2013-08-07 00:19:28 UTC (rev 153774)
@@ -1,3 +1,15 @@
+2013-08-06  Mark Lam  <[email protected]>
+
+        Assertion failure in emitExpressionInfo when reloading with Web Inspector open.
+        https://bugs.webkit.org/show_bug.cgi?id=119532.
+
+        Reviewed by Oliver Hunt.
+
+        * parser/Parser.cpp:
+        (JSC::::Parser):
+        - Just need to initialize the Parser's JSTokenLocation's initial line and
+          startOffset as well during Parser construction.
+
 2013-08-04  Sam Weinig  <[email protected]>
 
         Remove support for HTML5 MicroData

Modified: trunk/Source/_javascript_Core/parser/Parser.cpp (153773 => 153774)


--- trunk/Source/_javascript_Core/parser/Parser.cpp	2013-08-07 00:13:32 UTC (rev 153773)
+++ trunk/Source/_javascript_Core/parser/Parser.cpp	2013-08-07 00:19:28 UTC (rev 153774)
@@ -80,6 +80,8 @@
     m_lexer = adoptPtr(new LexerType(vm));
     m_arena = m_vm->parserArena.get();
     m_lexer->setCode(source, m_arena);
+    m_token.m_location.line = source.firstLine();
+    m_token.m_location.startOffset = source.startOffset();
     m_token.m_location.endOffset = source.startOffset();
     m_token.m_location.lineStartOffset = source.startOffset();
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to