Title: [152091] trunk
- Revision
- 152091
- Author
- timo...@apple.com
- Date
- 2013-06-27 04:03:32 -0700 (Thu, 27 Jun 2013)
Log Message
Notify the debugger about functions created from source code via new Function() or WebCore::JSLazyEventListener.
https://bugs.webkit.org/show_bug.cgi?id=118063
Reviewed by Geoffrey Garen.
Source/_javascript_Core:
* bytecode/UnlinkedCodeBlock.cpp:
(JSC::UnlinkedFunctionExecutable::fromGlobalCode): Call Debugger::sourceParsed.
LayoutTests:
* inspector/debugger/debugger-script-preprocessor-expected.txt: Updated.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (152090 => 152091)
--- trunk/LayoutTests/ChangeLog 2013-06-27 10:36:01 UTC (rev 152090)
+++ trunk/LayoutTests/ChangeLog 2013-06-27 11:03:32 UTC (rev 152091)
@@ -1,3 +1,13 @@
+2013-06-27 Timothy Hatcher <timo...@apple.com>
+
+ Notify the debugger about functions created from source code via new Function() or WebCore::JSLazyEventListener.
+
+ https://bugs.webkit.org/show_bug.cgi?id=118063
+
+ Reviewed by Geoffrey Garen.
+
+ * inspector/debugger/debugger-script-preprocessor-expected.txt: Updated.
+
2013-06-27 Christophe Dumez <ch.du...@sisa.samsung.com>
Unreviewed EFL gardening.
Modified: trunk/LayoutTests/inspector/debugger/debugger-script-preprocessor-expected.txt (152090 => 152091)
--- trunk/LayoutTests/inspector/debugger/debugger-script-preprocessor-expected.txt 2013-06-27 10:36:01 UTC (rev 152090)
+++ trunk/LayoutTests/inspector/debugger/debugger-script-preprocessor-expected.txt 2013-06-27 11:03:32 UTC (rev 152091)
@@ -5,6 +5,7 @@
inspector-test.js
debugger-test.js
debugger-script-preprocessor.html
+debugger-script-preprocessor.html
Page reloaded.
Modified: trunk/Source/_javascript_Core/ChangeLog (152090 => 152091)
--- trunk/Source/_javascript_Core/ChangeLog 2013-06-27 10:36:01 UTC (rev 152090)
+++ trunk/Source/_javascript_Core/ChangeLog 2013-06-27 11:03:32 UTC (rev 152091)
@@ -1,3 +1,14 @@
+2013-06-27 Timothy Hatcher <timo...@apple.com>
+
+ Notify the debugger about functions created from source code via new Function() or WebCore::JSLazyEventListener.
+
+ https://bugs.webkit.org/show_bug.cgi?id=118063
+
+ Reviewed by Geoffrey Garen.
+
+ * bytecode/UnlinkedCodeBlock.cpp:
+ (JSC::UnlinkedFunctionExecutable::fromGlobalCode): Call Debugger::sourceParsed.
+
2013-06-26 Anders Carlsson <ander...@apple.com>
Add JSStringCreateWithCharactersNoCopy SPI
Modified: trunk/Source/_javascript_Core/bytecode/UnlinkedCodeBlock.cpp (152090 => 152091)
--- trunk/Source/_javascript_Core/bytecode/UnlinkedCodeBlock.cpp 2013-06-27 10:36:01 UTC (rev 152090)
+++ trunk/Source/_javascript_Core/bytecode/UnlinkedCodeBlock.cpp 2013-06-27 11:03:32 UTC (rev 152091)
@@ -131,6 +131,10 @@
ParserError error;
CodeCache* codeCache = exec->vm().codeCache();
UnlinkedFunctionExecutable* executable = codeCache->getFunctionExecutableFromGlobalCode(exec->vm(), name, source, error);
+
+ if (exec->lexicalGlobalObject()->hasDebugger())
+ exec->lexicalGlobalObject()->debugger()->sourceParsed(exec, source.provider(), error.m_line, error.m_message);
+
if (error.m_type != ParserError::ErrorNone) {
*exception = error.toErrorObject(exec->lexicalGlobalObject(), source);
return 0;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes