Ignore:
Timestamp:
Jun 27, 2013, 4:03:32 AM (12 years ago)
Author:
[email protected]
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/JavaScriptCore:

  • bytecode/UnlinkedCodeBlock.cpp:

(JSC::UnlinkedFunctionExecutable::fromGlobalCode): Call Debugger::sourceParsed.

LayoutTests:

  • inspector/debugger/debugger-script-preprocessor-expected.txt: Updated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp

    r148696 r152091  
    132132    CodeCache* codeCache = exec->vm().codeCache();
    133133    UnlinkedFunctionExecutable* executable = codeCache->getFunctionExecutableFromGlobalCode(exec->vm(), name, source, error);
     134
     135    if (exec->lexicalGlobalObject()->hasDebugger())
     136        exec->lexicalGlobalObject()->debugger()->sourceParsed(exec, source.provider(), error.m_line, error.m_message);
     137
    134138    if (error.m_type != ParserError::ErrorNone) {
    135139        *exception = error.toErrorObject(exec->lexicalGlobalObject(), source);
Note: See TracChangeset for help on using the changeset viewer.