Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Unified Diff: test/preparser/strict-octal-number.js

Issue 6928059: Fix newly introduced bug in detecing octal numbers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added test to preparser test. Removed duplicates Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/preparser/strict-octal-directive-before.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/preparser/strict-octal-number.js
diff --git a/test/preparser/strict-octal-directive-after.js b/test/preparser/strict-octal-number.js
similarity index 92%
rename from test/preparser/strict-octal-directive-after.js
rename to test/preparser/strict-octal-number.js
index a878e758abe6a26d7875f7d15e4794f9ea788bc0..d387d6a32e1d434da34017a66823d875d8e020ec 100644
--- a/test/preparser/strict-octal-directive-after.js
+++ b/test/preparser/strict-octal-number.js
@@ -25,11 +25,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Strict mode with octal escape in string/directive prologue after
-// "use strict" directive.
+// Strict mode with octal number literal.
function foo() {
"use strict";
- "use hello\040world";
- return true;
+ var x = 012;
+ return x;
}
« no previous file with comments | « test/preparser/strict-octal-directive-before.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698