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/BuiltinNames.h

    r163960 r164346  
    3535#define DECLARE_BUILTIN_NAMES(name) const Identifier m_##name; const Identifier m_##name##PrivateName;;
    3636#define DECLARE_BUILTIN_IDENTIFIER_ACCESSOR(name) \
    37     const Identifier& name() const { return m_##name; } \
     37    const Identifier& name##PublicName() const { return m_##name; } \
    3838    const Identifier& name##PrivateName() const { return m_##name##PrivateName; }
    3939
Note: See TracChangeset for help on using the changeset viewer.