Reviewers: William Hesse, Description: Fix compile failure with GCC 4.5.0 (issue 1244)
GCC apparently assumes that given that we do a static cast in the next line the value must actually be in StrictModeFlag enum range (even though this is actually what we are asserting) Please review this at http://codereview.chromium.org/6670031/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/v8globals.h Index: src/v8globals.h =================================================================== --- src/v8globals.h (revision 7144) +++ src/v8globals.h (working copy) @@ -472,7 +472,8 @@ // The Strict Mode (ECMA-262 5th edition, 4.2.2). enum StrictModeFlag { kNonStrictMode, - kStrictMode + kStrictMode, + kInvalidStrictFlag }; } } // namespace v8::internal -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
