Ignore:
Timestamp:
Feb 18, 2014, 6:58:52 PM (11 years ago)
Author:
[email protected]
Message:

Prevent builtin js named with C++ reserved words from breaking the build
https://bugs.webkit.org/show_bug.cgi?id=129017

Reviewed by Sam Weinig.

Simple change to a couple of macros to make sure we don't create functions
named using reserved words.

  • builtins/BuiltinExecutables.cpp:
  • builtins/BuiltinNames.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/builtins/BuiltinExecutables.cpp

    r164139 r164346  
    8888{\
    8989    if (!m_##name##Executable)\
    90         m_##name##Executable = createBuiltinExecutable(m_##name##Source, m_vm.propertyNames->builtinNames().functionName());\
     90        m_##name##Executable = createBuiltinExecutable(m_##name##Source, m_vm.propertyNames->builtinNames().functionName##PublicName());\
    9191    return m_##name##Executable.get();\
    9292}
Note: See TracChangeset for help on using the changeset viewer.