Bug 142788

Summary: Built-in functions should know that they use strict mode
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: New BugsAssignee: Geoffrey Garen <ggaren>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, oliver, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
mark.lam: review+
Patch mark.lam: review+

Geoffrey Garen
Reported 2015-03-17 13:14:53 PDT
Built-in functions should know that they use strict mode
Attachments
Patch (27.87 KB, patch)
2015-03-17 13:22 PDT, Geoffrey Garen
no flags
Patch (28.97 KB, patch)
2015-03-17 13:38 PDT, Geoffrey Garen
mark.lam: review+
Patch (29.55 KB, patch)
2015-03-17 14:02 PDT, Geoffrey Garen
mark.lam: review+
Geoffrey Garen
Comment 1 2015-03-17 13:22:32 PDT
Geoffrey Garen
Comment 2 2015-03-17 13:38:45 PDT
WebKit Commit Bot
Comment 3 2015-03-17 13:41:45 PDT
Attachment 248866 [details] did not pass style-queue: ERROR: Source/JavaScriptCore/parser/Parser.cpp:210: Wrong number of spaces before statement. (expected: 8) [whitespace/indent] [4] Total errors found: 1 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 4 2015-03-17 13:43:47 PDT
Comment on attachment 248866 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248866&action=review > Source/JavaScriptCore/parser/ParserModes.h:34 > +enum JSParserStrictMode { JSParseNotStrictMode, JSParseStrictMode }; Can we use enum class instead? It makes future find/replace much easier and prevents accidental casts to integral types.
Geoffrey Garen
Comment 5 2015-03-17 13:45:33 PDT
> Can we use enum class instead? OK.
Geoffrey Garen
Comment 6 2015-03-17 14:02:22 PDT
WebKit Commit Bot
Comment 7 2015-03-17 14:04:10 PDT
Attachment 248869 [details] did not pass style-queue: ERROR: Source/JavaScriptCore/parser/Parser.cpp:210: Wrong number of spaces before statement. (expected: 8) [whitespace/indent] [4] Total errors found: 1 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Lam
Comment 8 2015-03-17 14:06:12 PDT
Comment on attachment 248866 [details] Patch r=me with Ryosuke's suggested fixes (and style issue resolved if valid, though it doesn't look like a valid complaint to me from the diff).
Mark Lam
Comment 9 2015-03-17 14:07:27 PDT
Comment on attachment 248869 [details] Patch r=me
Geoffrey Garen
Comment 10 2015-03-17 14:15:35 PDT
Note You need to log in before you can comment on or make changes to this bug.