Changeset 76148 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Jan 19, 2011, 12:18:57 PM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r76133 r76148 1 2011-01-19 Oliver Hunt <[email protected]> 2 3 Reviewed by Gavin Barraclough. 4 5 [jsfunfuzz] Defining a function called __proto__ inside an eval triggers an assertion 6 https://bugs.webkit.org/show_bug.cgi?id=52672 7 8 Rather than coming up with a somewhat convoluted mechanism to ensure that 9 developers can override the global objects prototype with a function named 10 __proto__ and expect it to work, we just disallow it at the syntax level. 11 12 * parser/JSParser.cpp: 13 (JSC::JSParser::parseFunctionInfo): 14 1 15 2011-01-19 Michael Saboff <[email protected]> 2 16 -
trunk/Source/JavaScriptCore/parser/JSParser.cpp
r75899 r76148 1224 1224 if (match(IDENT)) { 1225 1225 name = m_token.m_data.ident; 1226 failIfTrue(*name == m_globalData->propertyNames->underscoreProto); 1226 1227 next(); 1227 1228 if (!nameIsInContainingScope)
Note:
See TracChangeset
for help on using the changeset viewer.