|
Make "native" not a keyword.
We now only recognize "native function" when it occurs in extension scripts
(parsing with a non-NULL extension), and only if there is no line-terminator
between "native" and "function" (so that it would otherwise be a Syntax Error).
Preparsing never recognizes native functions, which is acceptable since we
never preparse extension scripts (because we don't allow lazy functions
anyway).
BUG= v8:1097
Committed: http://code.google.com/p/v8/source/detail?r=8326
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+32 lines, -60 lines) |
Patch |
|
M |
src/heap.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
|
5 chunks |
+15 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/preparser.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/preparser.cc
|
View
|
|
4 chunks |
+6 lines, -28 lines |
0 comments
|
Download
|
|
M |
src/preparser-api.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
2 comments
|
Download
|
|
M |
src/scanner-base.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/token.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-parsing.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/object-literal.js
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/mozilla/mozilla.status
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/sputnik/sputnik.status
|
View
|
|
1 chunk |
+6 lines, -8 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|