Commit 57dfdaba authored by timothy@apple.com's avatar timothy@apple.com

Notify the debugger about functions created from source code via new...

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/JavaScriptCore:

* bytecode/UnlinkedCodeBlock.cpp:
(JSC::UnlinkedFunctionExecutable::fromGlobalCode): Call Debugger::sourceParsed.

LayoutTests:

* inspector/debugger/debugger-script-preprocessor-expected.txt: Updated.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c390b11a
2013-06-27 Timothy Hatcher <timothy@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.dumez@sisa.samsung.com>
Unreviewed EFL gardening.
......@@ -5,6 +5,7 @@ Page reloaded.
inspector-test.js
debugger-test.js
debugger-script-preprocessor.html
debugger-script-preprocessor.html
Page reloaded.
......
2013-06-27 Timothy Hatcher <timothy@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 <andersca@apple.com>
Add JSStringCreateWithCharactersNoCopy SPI
......
......@@ -131,6 +131,10 @@ UnlinkedFunctionExecutable* UnlinkedFunctionExecutable::fromGlobalCode(const Ide
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;
......
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